Site logo

Archived topic

BLOG - show only posts with one category

2 replies · Started by Anonymous on October 23, 2014

Viewing posts 1–3 of 3

I really like GeneratePress and have quickly registered it - but for the BLOG addon I miss the feature to select the category of the posts which should be displayed. I need only those posts to be displayed which have the Category "Blog" being set (and maybe also additional others).

It would be really nice if the BLOG could be selectively added to any page, i.e. by adding the code [GenerateBlog category="Blog,Food"]. Then it could list all the posts which have the category "Blog" and also "Food". On a different page I could use [GenerateBlog category="Blog,Wine"] for example. I see that pagination will be a problem, but there could be the restriction that the [GenerateBlog] always has to be the last line on a page, anything after that can be ignored.

Hi there,

I have plans for a plugin that will allow you to display posts with a shortcode, and choose the categories to display as well - it's just not ready yet (not enough hours in the day).

For now, you could use default WordPress functionality to display posts from one category (http://example.com/category/your-category).

You can also use tags to display posts from multiple categories (http://example.com/tag/your-tag).

Thanks for your answer.
I am using this solution now. I didn't notice at first that the BLOG theme was also active for the display of archives. That works really well.

This archived topic is closed to new replies.