Forums

Page that shows all posts of a certain category (6 posts)

  1. diego898
    Member
    Posted 9 months ago #

    Hello,

    I'm running the latest version of wordpress and am looking for a way to show all posts belonging to the "news" category (or any other category) on a certain page. How can I accomplish this? Do I have start looking into page templates? The example on the page templates codex page lists all pages that have a custom field called category (which is confusing?)

    Any help would be great!

  2. carnini
    Member
    Posted 9 months ago #

    It is sort of built in using the category tag.
    yoursite.com/category/news/

    that would list all your posts tagged with news.

    You can modify the template to show that category listing how you want.

  3. diego898
    Member
    Posted 9 months ago #

    This doesn't work for me? I have a post categorized under news, but when I try mysite.com/category/news I get a 404 not found page

  4. carnini
    Member
    Posted 9 months ago #

    Do you have permalinks active?
    You will need those active for it to take the url and return something.
    That is activated in the backend under settings.
    Something like the "Month and name" should be checked.
    Apply that and then give that a go.
    You have a url to the site I could see?

  5. diego898
    Member
    Posted 9 months ago #

    ahh ok that worked thanks! And how can I go about changing how that page displays those posts? Some thing dealing with page templates right?

  6. carnini
    Member
    Posted 9 months ago #

    yes, working on the category template in your theme and the category loop if applicable.

Reply

You must log in to post.

About this Topic

Tags

No tags yet.