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
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.