Skip to content
  • Home
  • About
  • No Access
  • Privacy Policy
Bits of .NET
Bits of .NET
  • Asp.Net Core
  • C#
  • SQL
  • JavaScript
  • CSS
  • About
  • ErcanOPAK.com
  • No Access
  • Privacy Policy

Bits of .NET

Daily micro-tips for C#, SQL, performance, and scalable backend engineering.

  • Asp.Net Core
  • C#
  • SQL
  • JavaScript
  • CSS
  • About
  • ErcanOPAK.com
  • No Access
  • Privacy Policy

Category: Wordpress

Wordpress

WordPress: Fix a Translated Page Losing Its Featured Image Because a Multilingual Plugin Duplicated the Post Without Copying Its Meta

- 06.11.26 - ErcanOPAK comment on WordPress: Fix a Translated Page Losing Its Featured Image Because a Multilingual Plugin Duplicated the Post Without Copying Its Meta

πŸ“ WordPress: Fix a Translated Page Losing Its Featured Image Because a Multilingual Plugin Duplicated the Post Without Copying Its Meta Multilingual plugins that work by duplicating each post into a parallel translation create a brand-new post row for every language, and WordPress’s featured image is stored as post meta pointing at a specific attachment […]

Read More
Wordpress

WordPress: Fix Scheduled Posts Publishing Hours Late Because WP-Cron Only Fires on a Page Visit and the Site Gets No Traffic Overnight

- 06.11.26 - ErcanOPAK comment on WordPress: Fix Scheduled Posts Publishing Hours Late Because WP-Cron Only Fires on a Page Visit and the Site Gets No Traffic Overnight

πŸ“ WordPress: Fix Scheduled Posts Publishing Hours Late Because WP-Cron Only Fires on a Page Visit and the Site Gets No Traffic Overnight WordPress doesn’t run a real background scheduler by default β€” wp-cron.php is triggered opportunistically on an incoming page request, checking whether any scheduled task, including a post’s publish-at-this-time hook, is now due […]

Read More
Wordpress

WordPress: Fix the Site Editor’s Global Styles Silently Reverting After Switching Template Parts Because the Change Saved to the Wrong Style Variation

- 05.11.26 - ErcanOPAK comment on WordPress: Fix the Site Editor’s Global Styles Silently Reverting After Switching Template Parts Because the Change Saved to the Wrong Style Variation

πŸ“ WordPress: Fix the Site Editor’s Global Styles Silently Reverting After Switching Template Parts Because the Change Saved to the Wrong Style Variation The Styles panel in the Site Editor scopes a “Save” action to whatever block or template part context is currently active in the editor, not automatically to the site-wide theme.json-level styles. A […]

Read More
Wordpress

WordPress: Fix a Multisite Network’s Shared Media Library Returning 403 for Subsites Because the Uploads Path Rewrite Only Covers the Main Site’s Domain

- 05.11.26 - ErcanOPAK comment on WordPress: Fix a Multisite Network’s Shared Media Library Returning 403 for Subsites Because the Uploads Path Rewrite Only Covers the Main Site’s Domain

πŸ“ WordPress: Fix a Multisite Network’s Shared Media Library Returning 403 for Subsites Because the Uploads Path Rewrite Only Covers the Main Site’s Domain A multisite network configured so every subsite reads from one shared uploads directory still serves those files through a rewrite rule mapping /wp-content/uploads/sites/<blog_id>/ paths back to the physical shared folder on […]

Read More
Wordpress

WordPress: Fix wp_remote_get Silently Failing on a URL That Works Fine in a Browser Because sslverify Defaults to True and Rejects a Self-Signed Certificate

- 04.11.26 - ErcanOPAK comment on WordPress: Fix wp_remote_get Silently Failing on a URL That Works Fine in a Browser Because sslverify Defaults to True and Rejects a Self-Signed Certificate

πŸ“ Fix wp_remote_get Silently Failing on a URL That Works Fine in a Browser Because sslverify Defaults to True and Rejects a Self-Signed Certificate WordPress’s HTTP API wraps every outgoing request β€” wp_remote_get(), wp_remote_post(), and the rest β€” around an sslverify argument that defaults to true, meaning every HTTPS request WordPress makes on your behalf […]

Read More
Wordpress

WordPress: Fix the Site Health Check Reporting a Missed Cron Event Because a Full-Page Caching Plugin Serves Every Visit Without Ever Triggering wp_loaded

- 04.11.26 - ErcanOPAK comment on WordPress: Fix the Site Health Check Reporting a Missed Cron Event Because a Full-Page Caching Plugin Serves Every Visit Without Ever Triggering wp_loaded

πŸ“ Fix the Site Health Check Reporting a Missed Cron Event Because a Full-Page Caching Plugin Serves Every Visit Without Ever Triggering wp_loaded WordPress’s own pseudo-cron system has no persistent background process; instead, the wp-cron.php check is scheduled to fire from inside a normal page request, triggered by the wp_loaded action once a visit has […]

Read More
Wordpress

WordPress: Fix the Block Editor’s Featured Image Dimensions Silently Reverting to Full Size Because a Theme Update Removed Its Custom add_image_size Call

- 02.11.26 - ErcanOPAK comment on WordPress: Fix the Block Editor’s Featured Image Dimensions Silently Reverting to Full Size Because a Theme Update Removed Its Custom add_image_size Call

πŸ“ Fix the Block Editor’s Featured Image Dimensions Silently Reverting to Full Size Because a Theme Update Removed Its Custom add_image_size Call A theme registers its own custom image sizes with add_image_size() hooked to after_setup_theme, and the Featured Image panel in the block editor, along with every template that calls wp_get_attachment_image( $id, ‘featured-hero’ ), simply […]

Read More
Wordpress

WordPress: Fix a Custom Nav Menu Walker Class Silently Being Ignored Because the Theme’s wp_nav_menu Call Was Never Updated to Reference It After an Update

- 02.11.26 - ErcanOPAK comment on WordPress: Fix a Custom Nav Menu Walker Class Silently Being Ignored Because the Theme’s wp_nav_menu Call Was Never Updated to Reference It After an Update

πŸ“ Fix a Custom Nav Menu Walker Class Silently Being Ignored Because the Theme’s wp_nav_menu Call Was Never Updated to Reference It After an Update wp_nav_menu() accepts a ‘walker’ argument pointing at a custom Walker_Nav_Menu subclass that controls exactly how each menu item is rendered β€” dropdown carets, ARIA attributes, mega-menu wrappers, whatever markup the […]

Read More
Wordpress

WordPress: Fix a Multisite Subsite’s Uploads Pointing to the Wrong Domain Because the Site URL Was Changed After Content Already Existed

- 01.11.26 - ErcanOPAK comment on WordPress: Fix a Multisite Subsite’s Uploads Pointing to the Wrong Domain Because the Site URL Was Changed After Content Already Existed

πŸ“ Fix a Multisite Subsite’s Uploads Pointing to the Wrong Domain Because the Site URL Was Changed After Content Already Existed Every attachment URL inserted into a WordPress multisite subsite’s post content is written out as a full absolute URL at the moment it’s inserted, built from that subsite’s site URL as it existed at […]

Read More
Wordpress

WordPress: Fix the Media Library Showing Broken Thumbnails After a Migration Because the Image Sizes Were Never Regenerated for the New Server

- 01.11.26 - ErcanOPAK comment on WordPress: Fix the Media Library Showing Broken Thumbnails After a Migration Because the Image Sizes Were Never Regenerated for the New Server

πŸ“ Fix the Media Library Showing Broken Thumbnails After a Migration Because the Image Sizes Were Never Regenerated for the New Server WordPress stores the pixel dimensions it’s configured to generate for thumbnail, medium, and any theme- or plugin-registered custom image size as metadata attached to each attachment at upload time, but it does not […]

Read More
Wordpress

WordPress: Fix Custom Post Type Archive Pages Returning a 404 After a Plugin Update Resets the Rewrite Rules Without Re-Flushing Them

- 01.11.26 - ErcanOPAK comment on WordPress: Fix Custom Post Type Archive Pages Returning a 404 After a Plugin Update Resets the Rewrite Rules Without Re-Flushing Them

πŸ“ Fix Custom Post Type Archive Pages Returning a 404 After a Plugin Update Resets the Rewrite Rules Without Re-Flushing Them The URL mapping for a custom post type’s archive page comes from rewrite rules that WordPress compiles once and caches in the wp_options table, not from the register_post_type() call itself – that call only […]

Read More
Wordpress

WordPress: Fix a Child Theme’s Template Override Silently Ignored Because the File Was Placed One Directory Level Too Deep

- 01.11.26 - ErcanOPAK comment on WordPress: Fix a Child Theme’s Template Override Silently Ignored Because the File Was Placed One Directory Level Too Deep

πŸ“ Fix a Child Theme’s Template Override Silently Ignored Because the File Was Placed One Directory Level Too Deep WordPress’s template hierarchy and functions like get_template_part() resolve a child theme’s override by checking the exact same relative path inside the child theme’s folder that the parent theme used to load the file – not wherever […]

Read More
Wordpress

WordPress: Fix Pingbacks From Your Own Site Silently Appearing as Spam Comments Because Self-Pingbacks Were Never Disabled

- 01.11.26 - ErcanOPAK comment on WordPress: Fix Pingbacks From Your Own Site Silently Appearing as Spam Comments Because Self-Pingbacks Were Never Disabled

πŸ“ Fix Pingbacks From Your Own Site Silently Appearing as Spam Comments Because Self-Pingbacks Were Never Disabled Whenever a post links to another post, WordPress’s default XML-RPC pingback mechanism fires a notification to the linked URL, and that mechanism doesn’t check whether the link happens to point back at the very same site that just […]

Read More
Wordpress

WordPress: Fix a Custom Nav Menu Item That Silently Disappears From the Front End Because It Points to a Draft Page That Was Later Republished Under a New Post ID

- 01.11.26 - ErcanOPAK comment on WordPress: Fix a Custom Nav Menu Item That Silently Disappears From the Front End Because It Points to a Draft Page That Was Later Republished Under a New Post ID

πŸ“ Fix a Custom Nav Menu Item That Silently Disappears From the Front End Because It Points to a Draft Page That Was Later Republished Under a New Post ID A menu item built from a page (Appearance > Menus, dragging a page into the menu structure) doesn’t store the page’s title or URL β€” […]

Read More
Wordpress

WordPress: Fix a Custom Login URL Plugin Breaking the Admin-Ajax Nonce Check Because It Still Expects Requests Through the Original wp-login.php Path

- 31.10.26 - ErcanOPAK comment on WordPress: Fix a Custom Login URL Plugin Breaking the Admin-Ajax Nonce Check Because It Still Expects Requests Through the Original wp-login.php Path

πŸ“ Fix a Custom Login URL Plugin Breaking the Admin-Ajax Nonce Check Because It Still Expects Requests Through the Original wp-login.php Path A custom login URL plugin typically works by rewriting one specific slug to WordPress’s real wp-login.php handler and returning a 404 for anyone who requests wp-login.php directly, which is exactly what keeps automated […]

Read More
Wordpress

WordPress: Fix SVG Files Failing Silently on Upload Because the Media Library Blocks That MIME Type by Default

- 31.10.26 - ErcanOPAK comment on WordPress: Fix SVG Files Failing Silently on Upload Because the Media Library Blocks That MIME Type by Default

πŸ“ Fix SVG Files Failing Silently on Upload Because the Media Library Blocks That MIME Type by Default WordPress checks every uploaded file’s extension against an allow-list of MIME types before accepting it into the Media Library, and SVG was deliberately left off that list by default because an SVG file can embed inline JavaScript […]

Read More
Wordpress

WordPress: Fix a Custom Gutenberg Block Losing Its Saved Attributes After a Plugin Update Because the Block’s Deprecated Versions Were Never Registered

- 31.10.26 - ErcanOPAK comment on WordPress: Fix a Custom Gutenberg Block Losing Its Saved Attributes After a Plugin Update Because the Block’s Deprecated Versions Were Never Registered

πŸ“ Fix a Custom Gutenberg Block Losing Its Saved Attributes After a Plugin Update Because the Block’s Deprecated Versions Were Never Registered Every Gutenberg block’s saved content in the post’s HTML comment delimiters gets validated against that block’s current save() function the moment the post is opened in the editor again, matching the markup it […]

Read More
Wordpress

WordPress: Fix a Multisite Subsite’s Media Uploads Silently Writing Into the Main Site’s Upload Folder Because the Blog ID Path Mapping Broke After a Server Migration

- 31.10.26 - ErcanOPAK comment on WordPress: Fix a Multisite Subsite’s Media Uploads Silently Writing Into the Main Site’s Upload Folder Because the Blog ID Path Mapping Broke After a Server Migration

πŸ“ Fix a Multisite Subsite’s Media Uploads Silently Writing Into the Main Site’s Upload Folder Because the Blog ID Path Mapping Broke After a Server Migration Multisite keeps every subsite’s media physically separated by computing an upload path from the current blog’s ID at the moment a file is uploaded, normally landing each subsite’s files […]

Read More
Wordpress

WordPress: Fix a Custom Taxonomy’s Terms Not Appearing in the Site’s Own Search Results Because the Taxonomy Was Registered With exclude_from_search Left at Its Default

- 31.10.26 - ErcanOPAK comment on WordPress: Fix a Custom Taxonomy’s Terms Not Appearing in the Site’s Own Search Results Because the Taxonomy Was Registered With exclude_from_search Left at Its Default

πŸ“ Fix a Custom Taxonomy’s Terms Not Appearing in the Site’s Own Search Results Because the Taxonomy Was Registered With exclude_from_search Left at Its Default Registering a custom taxonomy with register_taxonomy hands back control over a long list of arguments, and public is the one most people set explicitly, which makes it easy to assume […]

Read More
Wordpress

WordPress: Fix a Multisite Network’s Shared Plugin Settings Leaking Into a Subsite Because switch_to_blog Was Never Restored Afterward

- 31.10.26 - ErcanOPAK comment on WordPress: Fix a Multisite Network’s Shared Plugin Settings Leaking Into a Subsite Because switch_to_blog Was Never Restored Afterward

πŸ“ Fix a Multisite Network’s Shared Plugin Settings Leaking Into a Subsite Because switch_to_blog Was Never Restored Afterward A network-wide plugin often needs to read or write data on a different subsite than the one currently being viewed, pulling a shared resource list or syncing a setting across the network, and the standard way to […]

Read More
Wordpress

WordPress: Fix Site Health Reporting the REST API as Broken Because a Security Plugin Blocks the Loopback Request, Not Real Visitor Traffic

- 31.10.26 - ErcanOPAK comment on WordPress: Fix Site Health Reporting the REST API as Broken Because a Security Plugin Blocks the Loopback Request, Not Real Visitor Traffic

πŸ“ Fix Site Health Reporting the REST API as Broken Because a Security Plugin Blocks the Loopback Request, Not Real Visitor Traffic WordPress’s Site Health REST API test works by having the server send a request back to its own REST endpoint, a loopback call, to confirm the API actually answers. A firewall rule or […]

Read More
Wordpress

WordPress: Fix a Custom CSS Class Silently Reverting on One Instance of a Block Because It Was Converted to a Synced Pattern

- 31.10.26 - ErcanOPAK comment on WordPress: Fix a Custom CSS Class Silently Reverting on One Instance of a Block Because It Was Converted to a Synced Pattern

πŸ“ Fix a Custom CSS Class Silently Reverting on One Instance of a Block Because It Was Converted to a Synced Pattern Turning a block into a synced pattern stores one shared piece of content that every placement of the pattern simply references, so editing the pattern once changes it everywhere it’s used, which is […]

Read More
Wordpress

WordPress: Fix a Multisite Subsite’s Scheduled Posts Publishing on the Network’s Clock Instead of the Subsite’s Own Timezone Setting

- 30.10.26 - ErcanOPAK comment on WordPress: Fix a Multisite Subsite’s Scheduled Posts Publishing on the Network’s Clock Instead of the Subsite’s Own Timezone Setting

πŸ“ Fix a Multisite Subsite’s Scheduled Posts Publishing on the Network’s Clock Instead of the Subsite’s Own Timezone Setting Each subsite in a WordPress Multisite network has its own Settings > General timezone option, stored in that subsite’s own wp_options table, and WordPress does read it correctly when you’re setting a publish date in that […]

Read More
Wordpress

WordPress: Fix a Plugin’s Admin Notice Reappearing on Every Page Load Because Dismissing It Only Sets a User Meta Flag the Plugin Never Actually Checks

- 30.10.26 - ErcanOPAK comment on WordPress: Fix a Plugin’s Admin Notice Reappearing on Every Page Load Because Dismissing It Only Sets a User Meta Flag the Plugin Never Actually Checks

πŸ“ Fix a Plugin’s Admin Notice Reappearing on Every Page Load Because Dismissing It Only Sets a User Meta Flag the Plugin Never Actually Checks Clicking the Γ— on a WordPress admin notice usually fires an AJAX call that saves a “dismissed” flag to user meta so the notice won’t render for you again. That […]

Read More
Wordpress

WordPress: Fix a Scheduled Export Backup Silently Missing New Tables Because the Plugin Only Dumps the Table List It Cached at Activation

- 30.10.26 - ErcanOPAK comment on WordPress: Fix a Scheduled Export Backup Silently Missing New Tables Because the Plugin Only Dumps the Table List It Cached at Activation

πŸ“ Fix a Scheduled Export Backup Silently Missing New Tables Because the Plugin Only Dumps the Table List It Cached at Activation Some backup plugins build the list of tables they’ll dump once β€” typically at activation or the first manual run β€” and store that list in their own options row instead of querying […]

Read More
Wordpress

WordPress: Fix REST API Requests Timing Out Behind a Reverse Proxy Because Its Buffer Size Is Smaller Than the Response Body

- 30.10.26 - ErcanOPAK comment on WordPress: Fix REST API Requests Timing Out Behind a Reverse Proxy Because Its Buffer Size Is Smaller Than the Response Body

πŸ“ Fix REST API Requests Timing Out Behind a Reverse Proxy Because Its Buffer Size Is Smaller Than the Response Body A reverse proxy like nginx sitting in front of PHP-FPM buffers the upstream response in memory before it decides how to forward it, and that buffer defaults to a small size β€” a handful […]

Read More
Wordpress

WordPress: Fix oEmbed Previews Breaking in the Block Editor Because the Site Moved to HTTPS While the Cached oEmbed Table Still Holds HTTP URLs

- 30.10.26 - ErcanOPAK comment on WordPress: Fix oEmbed Previews Breaking in the Block Editor Because the Site Moved to HTTPS While the Cached oEmbed Table Still Holds HTTP URLs

πŸ“ Fix oEmbed Previews Breaking in the Block Editor Because the Site Moved to HTTPS While the Cached oEmbed Table Still Holds HTTP URLs WordPress caches a successful oEmbed response as post meta the first time a URL is embedded, specifically to avoid re-fetching the embed provider on every page load. Moving the whole site […]

Read More
Wordpress

WordPress: Fix the Site Health Check Reporting a Critical REST API Error That Only Appears Behind a Caching Plugin’s Page Cache

- 30.10.26 - ErcanOPAK comment on WordPress: Fix the Site Health Check Reporting a Critical REST API Error That Only Appears Behind a Caching Plugin’s Page Cache

πŸ“ Fix the Site Health Check Reporting a Critical REST API Error That Only Appears Behind a Caching Plugin’s Page Cache Site Health’s REST API availability test works by having the server make a loopback HTTP request to its own /wp-json/ endpoint and checking that the response comes back clean. A full-page caching plugin that […]

Read More
Wordpress

WordPress: Fix an Image Uploaded at Full Resolution Still Serving the Original File Because the Server’s Image Library Silently Failed to Generate Scaled Versions

- 29.10.26 - ErcanOPAK comment on WordPress: Fix an Image Uploaded at Full Resolution Still Serving the Original File Because the Server’s Image Library Silently Failed to Generate Scaled Versions

πŸ“ Fix an Image Uploaded at Full Resolution Still Serving the Original File Because the Server’s Image Library Silently Failed to Generate Scaled Versions WordPress depends on either the Imagick or GD PHP extension to actually generate the thumbnail, medium, large, and scaled intermediate sizes it records in an attachment’s metadata. If neither extension is […]

Read More
Wordpress

WordPress: Fix the Block Editor Losing Your Cursor Position Every Time Autosave Runs Because Autosave Re-Renders the Entire Block List

- 29.10.26 - ErcanOPAK comment on WordPress: Fix the Block Editor Losing Your Cursor Position Every Time Autosave Runs Because Autosave Re-Renders the Entire Block List

πŸ“ Fix the Block Editor Losing Your Cursor Position Every Time Autosave Runs Because Autosave Re-Renders the Entire Block List Gutenberg’s autosave fires a Redux-style store update every time it saves a draft in the background, and any plugin that subscribes to that store broadly – instead of scoping its useSelect() call to just the […]

Read More
Page 2 of 13
Β« Previous 1 2 3 4 5 6 7 … 13 Next Β»

Posts pagination

« Previous 1 2 3 4 … 13 Next »
November 2026
M T W T F S S
 1
2345678
9101112131415
16171819202122
23242526272829
30  
« Oct    

Most Viewed Posts

  • How to make theater mode the default for Youtube (1,068)
  • Get the User Name and Domain Name from an Email Address in SQL (990)
  • How to add default value for Entity Framework migrations for DateTime and Bool (986)
  • Get the First and Last Word from a String or Sentence in SQL (865)
  • How to select distinct rows in a datatable in C# (859)
  • How to enable, disable and check if Service Broker is enabled on a database in SQL Server (661)
  • Add Constraint to SQL Table to ensure email contains @ (619)
  • Average of all values in a column that are not zero in SQL (577)
  • How to use Map Mode for Vertical Scroll Mode in Visual Studio (553)
  • Find numbers with more than two decimal places in SQL (481)

Recent Posts

  • Network Speed Monitor Windows Application v2.5.1
  • Ağ HΔ±zΔ± Δ°zleyici Windows UygulamasΔ± v2.5.1
  • How to make theater mode the default for Youtube
  • The AI Prompt That Audits a Function for Thread-Safety Gaps
  • Ajax: Fix a Fetch Request Caching a Response Despite No-Store
  • WordPress: Fix a Navigation Block Losing Submenu Items After Sync
  • Visual Studio: Fix CodeLens Reference Counts Stuck at Stale Numbers
  • C#: Fix a UTF-8 String Literal Behaving Differently in a Switch
  • Photoshop: Fix a Liquify Mesh Snapping Back on a Smart Object
  • The AI Prompt That Turns a Crash Dump Into a Short Repro Script

Most Viewed Posts

  • How to make theater mode the default for Youtube (1,068)
  • Get the User Name and Domain Name from an Email Address in SQL (990)
  • How to add default value for Entity Framework migrations for DateTime and Bool (986)
  • Get the First and Last Word from a String or Sentence in SQL (865)
  • How to select distinct rows in a datatable in C# (859)

Recent Posts

  • Network Speed Monitor Windows Application v2.5.1
  • Ağ HΔ±zΔ± Δ°zleyici Windows UygulamasΔ± v2.5.1
  • How to make theater mode the default for Youtube
  • The AI Prompt That Audits a Function for Thread-Safety Gaps
  • Ajax: Fix a Fetch Request Caching a Response Despite No-Store

Social

  • ErcanOPAK.com
  • GoodReads
  • LetterBoxD
  • Linkedin
  • The Blog
  • Twitter
© 2026 Bits of .NET | Built with Xblog Plus free WordPress theme by wpthemespace.com