Forums

[resolved] I want to make FOUR pages that display ONLY ONE unique category on each page? (10 posts)

  1. sealyspeak
    Member
    Posted 4 months ago #

    In short, my site (using a child theme based on MYSTIQUE 3.2.7 using the extended version theme) will have in it 4 pages that will show only posts from one chosen category, eg: NEWS page showing NEWS posts/categories, BLOG page showing only blog posts/categories, etc...

    I am a newcomer to WordPress, but am really trying to get to grips with it.

    Not sure if I have to amend the categories.php template or if there may be a way of doing this within the WordPress settings?

    Really stuck on this one. Any help would be great.

    My test site: http://atinymind.co.uk/test/

    Many thanks!

  2. vtxyzzy
    Member
    Posted 4 months ago #

    One way to do this is to create a blank page for each category and use the Page Links To plugin to link to the correct category.

  3. alchymyth
    The Sweeper
    Posted 4 months ago #

    have to amend the categories.php template

    possibly, as by default, category.php will also show posts of child categories.

    you could try something suggested in this related topic: http://wordpress.org/support/topic/only-show-posts-of-current-category?replies=6

  4. sealyspeak
    Member
    Posted 4 months ago #

    Thanks vtxyzzy, but I need to display on each page the post with image and more tag, so you can scroll down and have a good idea about what each post is about, and see a thumb, or featured image.

    Really appreciate your assistance, any further ideas?

  5. vtxyzzy
    Member
    Posted 4 months ago #

    The plugin just calls category.php for the category you give it. It will display however category.php is set up. I think that is just what you asked for.

  6. sealyspeak
    Member
    Posted 4 months ago #

    Thanks alchymyth, I read the link and it sounds like this may be a solution? I will try tomorrow and let you know.

    If anyone else has a suggestion or links, please pass them on.

    Many thanks alchymyth for your time and assistance.

  7. sealyspeak
    Member
    Posted 4 months ago #

    Hi again vtxyzzy, I am on my iPhone at the moment and just read the plugin description without installing it so I may have misunderstood it's actual function. I will check tomorrow, and get back to you.

    Sorry for my ignorance, your help is always appreciated!

  8. sealyspeak
    Member
    Posted 4 months ago #

    Hi vtxyzzy,

    I looked at this plugin today thanks, but I can't see how I would use this to achieve what I want to do? It just seems to point the URL of a page some place else, and does not allow me to choose the ONE category I want to show on this page?

    I have chose category.php as the page template, but I am thinking I will have to edit this so to allow me to have the four pages showing specific category posts only.

    Am I missing something with the "Pages link to" plugin?

    Thanks vtxyzzy. alchymyth, will take a look tonight at your solution.

    Anyone else?

  9. vtxyzzy
    Member
    Posted 4 months ago #

    The plugin WILL do what you want. Please give this a try:

    1. Install and activate the plugin.
    2. Find the id of a category you want to display.
    3. Create a blank page, with a title, for the category.
    4. In the Page Links To URL, put http://yoursitename.com/?cat=44
    5. Put in your own site name, and replace 44 with your category id.
    6. Publish and view the page.
  10. sealyspeak
    Member
    Posted 4 months ago #

    vtxyzzy,

    it does work, many thanks for this! But... the page title (or state) in the navigation bar does not indicate that you are actually on the page. I can't see that this method of diverting the URL could change that?

    You are a star though vtxyzzy, your help has made a great difference to my understanding of WordPress.

    Will try another way next...

Reply

You must log in to post.

About this Topic