Forums

Publish filtered posts on page (4 posts)

  1. Fizzgigg
    Member
    Posted 4 months ago #

    Hi.
    I'm not really sure if I'm looking for a plugin, a hack or what, I just know what kind of result I want.

    I want to make a page that shows posts just like an ordinary frontpage, but filtered on either tag or category.
    A made up example:

    I create a page and call it Politics. In the main area/body of the page I add for example [category="Politics"]. Now I've got a dedicated page about politics, and when I look at the page it will show politics-posts as on the first page, not results of a search as when you click on a subject on the Category-widget.

    I hope someone understands what I mean. :-)

  2. mercime
    Member
    Posted 4 months ago #

    Yup, create a category page template for Politics which you can layout and style differently if you prefer
    http://codex.wordpress.org/Category_Templates

  3. Fizzgigg
    Member
    Posted 4 months ago #

    I'm glad there's a way to do it, but that's way too complicated for me. I tried to get it to work but I just can't get my head around it.

    I've tried looking for plugins that'll do the trick, but I'm not sure what to search for. I know what result I want, but don't know what to search for.

  4. mercime
    Member
    Posted 4 months ago #

    Ok, I get what you mean. Change to WordPress default theme. When you click on any category or tag, the default theme's archive.php will show all posts in that category or tag you clicked on. Most themes have that template - archive.php - which have if/else statements to cover which posts links to show in respective category, tag, author, month, year, etc.

    Then only when you want to have a specific style for one of the "special" categories, you can create a Page template specific for that category as I mentioned above :-) or a Page template for tag/month/etc.

Reply

You must log in to post.

About this Topic