How to set the number of Latest News posts in Zelle

By default you can set the number of posts for Zerif's Latest News section from Settings > Reading settings, in your WordPress dashboard. It'll be changed in your blog page, as well as Latest News section. But what if you want to have different page count?

Then you will have to use edit your theme files. Before you continue reading, don't forget that you're using a child theme with your Zelle

You need to copy the /sections/latest_news.php file from your parent theme to your child theme, and the find the following line of code:

$zerif_total_posts = get_option('posts_per_page'); /* number of latest posts to show */

You can replace assign the number you want as in integer, like this:

$zerif_total_posts = 10; /* number of latest posts to show */

And that will do. Save the file, and you're done!

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.

Still need help? Contact Us Contact Us