Ridizain is one of the easiest, feature-filled, free-of-charge “base” theme available for WordPress. However, there was one particular bug that only shows up when using a Ridizain child theme — the Featured Post shows 5 posts regardless of the custom setting.
It has been more than four months since this was reported but it was only today that I took time to read the theme’s files and debug it. I am happy to report that I found the bug and squashed it.
The bug fix is simple, all you have to do is open up the “functions.php” file of your parent Ridizain theme, copy all of the code here, then replace your version. Or, download and replace your “functions.php” file. This is, assuming, you never changed anything in your parent Ridizain theme functions.php file. If you did, skip this one.
Here are where the changes were:
It’s simple actually, follow these steps if you need to do this manually.
- Open your parent Ridizain theme’s “functions.php” file
- Look for “num_posts_” (without the quotation marks), there are two
- Replace both instances with: num_posts_grid
- Save the file
That’s it. Your child Ridizain theme’s number of Features Post to display setting will now work correctly.
An important note
Since we edited the parent Ridizain theme’s functions.php file, if the theme author pushed an update without the fix above, we have to repeat the same steps again. Unfortunately, I can not find where the source of the theme is hosted so I can submit the fix. The instruction above will have to do for now.
Related articles across the web
Is a bibliophile and technophile other than being an early adopter, an avid gamer, anime otaku, trekker, and photographer. He is an advocate of “Free Culture”, “Open Knowledge”, “Creative Commons”, “Free/Libre Open-Source Software”, and the “Fediverse” (federated social-network).
His first online project was in 1998 when he launched the unofficial website for Ansalon MUD (a text-based online game) and his own community forums Laibcoms.Community. Today, he owns a variety of online properties and help others establish their online presence.
WordPress Ridizain Theme Featured Post Bug Fix by ᜌᜓᜃᜒ (Yuki|雪亮) is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License. Permissions beyond the scope of this license may be available at Legal Notice.