No posts shown on blog-page => "Nothing to show right now"

Although I have several blog-posts, that are shown correctly in a post-slider, no posts are shown on the standard blogpage.
I see only “Nothing to Show Right Now. It appears whatever you were looking for is no longer here or perhaps wasn’t here to begin with. You might want to try starting over from the homepage to see if you can find what you’re after from there.”

Any idea whats wrong here?

Uli

Hi There,

Thanks for writing in! I see that you’re using Ethos stack. In Ethos stack, try setting the following options under Theme Options > Ethos and see if that helps.

Thanks!

Hi midarshana, thank you for your help. I had already activated the slider, but with other (default?) settings. Changing them to your settings, slider and posts were shown. Now I switched the slider off, and only the posts are shown. Perfect.

But how can I decide, wich categorys shall be shown there and wich may not?

Best regards

Uli

Hi There,

You have to enable the filterable option to choose the category to show on the blog page.

Theme Options > Ethos

Hope this is something you are looking for.

Thanks

Unfortunately, that’s not exactly what I was looking for. Now I get a filter-dropdown on my news-site. But I only want to have a list of the news from category x,y,z. There are not many news, probably one or two of each category, so the filter doesnt make any sense here. But there are categories, that I don’t want to be shown here …

Hey There,

In thise case, please turn off the filter index and add this code under functions.php file locates in your child theme:

function blog_filter($query) {
	if ( !is_admin() && $query->is_main_query() ) {
		if ($query->is_home()) {
			$query->set('cat', '1, 2, 3');
		}
	}
}
add_action('pre_get_posts','blog_filter');

The 1, 2, 3 numbers shoud be your category IDs.

Let us know how it goes!

Hi thai,
that works, thank you.

Would be great to have a possibility to configure this in the backend without writing code (and without having to contact you :wink: Probably you could add this to a wishlist for the next update?
Best regards
Uli

Hi Uli,

Thank you for the feed back and we are delighted to assist you with this.

Cheers!

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.