Black Friday Sale! Get up to $40 off GP Premium!Learn more

[Resolved] BLOG – show only posts with one category

Home Forums Support BLOG – show only posts with one category

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #41136
    Julian

    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.

    #41288
    Tom
    Lead Developer
    Lead Developer

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

    #41426
    Julian

    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.

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.