Steps Add the PHP code to your theme’s functions.php. Save the changes. Go to WordPress Dashboard → Posts → All Posts. A new Word…
Revisions silently bloat the database on content-heavy sites. Safe to run – revisions are regenerated automatically as you edit. Steps to use: Run the…
Faster than opening phpMyAdmin when you need to check or debug a specific wp_options value. Usage: Replace the option name with whatever you’re looking…
Fastest admin recovery method when locked out and email isn’t working. Usage: Use username, email, or user ID – all three work with wp…
The first command to run when you SSH into an unfamiliar WordPress site. wp --info is the fastest orientation command – shows PHP path,…
Steps Add the PHP code to your theme’s functions.php. Save the changes. Go to WordPress Dashboard → Pages → All Pages. A new Page…
Steps Add the PHP code to your theme’s functions.php. Save the changes. Go to WordPress Dashboard → Pages → All Pages. The Page ID…
Add or remove a CSS class when the user scrolls past a specific point, useful for sticky headers, navigation effects, and scroll-based styling.
Steps Add the PHP code to your theme’s functions.php. Save the changes. Open any single blog post. WordPress will add the custom-blog-post class to…
Steps Add the PHP code to your theme’s functions.php. Change Continue Reading to your preferred text. Save the changes. Check a page displaying automatic…
Steps Add the PHP code to your theme’s functions.php. Change 25 to the number of words you want. Save the changes. WordPress will use…
Steps Add the PHP code to your theme’s functions.php. Save the changes. Open any single blog post. The disclaimer will automatically appear after the…
