HOW to Add All my POSTS that fall within a specific category?

Hello,
I want to add a page where all my posts that fall in a specifc category will be placed.
Your short comes with [recent_posts] offer unsatisfactory options:
I can only add 1, 2, 3, 4 and choose a category. But I cannot add all my posts.
I want to make it so that when I create a new article within that category, it will be automaically posted on that page.

Saw this option:
[recent_posts count=“2” category=“Camping”]
[recent_posts count=“2” category=“Camping” offset=“2”]
[recent_posts count=“2” category=“Camping” offset=“4”]
[recent_posts count=“2” category=“Camping” offset=“8”]
[recent_posts count=“2” category=“Camping” offset=“10”]
[recent_posts count=“2” category=“Camping” offset=“12”]

This means I have to update this page regurarly. Is there another way please? To add them all so that the builder automatically adds all the posts from the category “Camping” to that page?
Thank you.

Hi Svetozar,

Thank you for the details.

The recent post shortcode is good if you want to display post items or a certain category of post items on a page or homepage. Please also be aware that each category has its own category archive page. You can check out the example links in the secure note.

Using the recent post shortcode such as this:

Some paragraph text about Camping. 
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer scelerisque eros eu pulvinar dictum. Nunc egestas massa at elit bibendum, cursus fringilla nunc faucibus. Proin dignissim efficitur nunc a cursus. In luctus mi in nisi condimentum, sed ornare enim tempor.

[recent_posts count="2" category="Camping"]
[recent_posts count="2" category="Camping" offset="2"]
[recent_posts count="2" category="Camping" offset="4"]
[recent_posts count="2" category="Camping" offset="8"]
[recent_posts count="2" category="Camping" offset="10"]
[recent_posts count="2" category="Camping" offset="12"]

This is applicable if you are creating a page could “Camping” and would also like to include several number of post items. You can not add all the post items because that is not possible and not recommend. Just imagine if your post items would reach to a thousand. The page would likely take a very long time to load all the thousand posts.

Hope this helps.

  1. Question 1
    What do you mean by category archive?
    Does it include all the posts? How do I make a blogroll type page only for posts that fall under a certain category?
    It could have several (next page buttons if the number of posts is too great).
    How do I do that?
    Maybe that will help me with my question.

  2. Question 2
    how do I change the [recent_posts count=“2” category=“Camping”] so that the each posts in that duo is a bit larger (say about 15%)?
    Also I would rather it display a text like “Read more” than just the simple post date.

Thank you very much.

Hi Svetozar,

1.) Category Archive is exactly what you are looking for. It is available by default on wordpress with apging already like a blog roll. To see it, Go to Admin > Posts > Categories. You can see the list of categories. Hover on each, click View link. It will redirect you to that categoy archive page. Listing all post under that specific category. It’s design depends on the stack you were using.

2.) Are you referring to the recent post on your homepage? By default, recent post element where occupy the entire container. So if you want to increase it’s, we need to adjust the container where it is added. So try to inspect ROW. Under Setup, set INNER CONTAINER TO OFF. It will then be edge to edge of the browser based on your setting. You can then add left and right padding on the section to add a little bit space from the edge of the browser.

Adding read more can be achieve using a child theme. A code needs to be updated. Please check this article as guide.

Hope this helps.

Hello,
Thank you very much :slight_smile:

You are most welcome!

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