WordPress

How to Fetch RSS Feed/News in WordPress

Introduction Fetching RSS feeds in WordPress can be efficiently handled using the fetch_feed() function. This built-in WordPress function which simplifies the process of retrieving RSS feed items from a remote (WordPress) site. Step-by-Step Guide Example how to fetch and display RSS This is a standalone php script that loads wp-config and WordPress. It would be […]

How to Fetch RSS Feed/News in WordPress Read More »

WordPress Developer Desk Code on a Computer Screen Highlighting the Transition from Using Curl for Http Requests

Why New & Seasoned WordPress Developers Should Avoid Direct php cURL Requests and Use WordPress HTTP API Instead

As WordPress continues to gain popularity in the CMS market, it attracts developers from various backgrounds, including those with strong PHP skills. However, some PHP habits, such as directly using cURL for making HTTP requests, can lead to less maintainable and less secure code. WordPress offers a powerful alternative with its built-in HTTP API, which

Why New & Seasoned WordPress Developers Should Avoid Direct php cURL Requests and Use WordPress HTTP API Instead Read More »

How to Fix WordPress Multisite Redirect Loop Network Admin

So you’ve decided to try WordPress Multisite?Awesome! WordPress Multisite has its uses even though many people don’t usually recommend it.It is probably because not many WordPress plugins are compatible with it. You can use WordPress multisite for different subsections of the site. e.g. support, help, developer docs etc. i.e. everything that’s related to a product

How to Fix WordPress Multisite Redirect Loop Network Admin Read More »

How to Programmatically Modify Meta Title if using RankMath WordPress Plugin

Normally to modify the WordPress pages’ meta title you can use the following filter.doc ref: https://developer.wordpress.org/reference/hooks/the_title/ the callback will receive $post_title, $post_id as arguments. If you’re using RankMath for your SEO stuff you need to use this filter: rank_math/frontend/title to modify the meta title. I didn’t have the time to fully investigate why that’s the

How to Programmatically Modify Meta Title if using RankMath WordPress Plugin Read More »

How to Edit a Slug/Link/Permalink of a Custom Post Type in WordPress

So you’ve created a cool custom post type in WordPress but can’t find a way to edit its slug/link/permalink? Editing the slug is not that obvious for a custom post types. We know. WordPress shows the default/classic WordPress editor and not the block editor for custom post types. So you’ve added a custom post type

How to Edit a Slug/Link/Permalink of a Custom Post Type in WordPress Read More »

How to Delete Posts of a Custom Post Type Efficiently

How many times did you want to delete some test data? You can paste the following snippet into your functions.php file (temporarily) or in a custom plugin. You need to update my_custom_post_type to match your custom post type. Then login as admin and then access your site e.g. example.com/?admin_del_cpt_posts and you’ll see the post ids

How to Delete Posts of a Custom Post Type Efficiently Read More »