Forums

Pages with Categories (9 posts)

  1. angelbuduk
    Member
    Posted 3 years ago #

    Hi

    I am using wordpress as more of a cms tool, i would like to have individual categories for pages - is this possible in wordpress any addons/hacks that can do this?

    Many Thanks in advance
    Carl

  2. MichaelH
    Volunteer
    Posted 3 years ago #

    You mean assign Categories to Pages?

    Look at this plugin: http://wordpress.org/extend/plugins/page2cat/

  3. cesarmenezes
    Member
    Posted 3 years ago #

    Hi,
    I'm trying to use this plugin but it needs to modify my "archive.php". At the plugin page in the "extend", the "read here" link on the Installation #5 item is not accessible.
    Anyone to help me?

  4. q101
    Member
    Posted 3 years ago #

    second that. I started a new post on that topic here:

    http://wordpress.org/support/topic/256166?replies=1

  5. brandonpturner
    Member
    Posted 2 years ago #

    Hello! I have a bit of an issue and I'm gonna be under some pressure soon if I don't get it resolved. I know that I can have different posts on different "pages" by assigning categories to each post, and linking to those categories in my nav bar. This would normally be fine, but in the address bar, it says "/?cat=*". I don't mind this so much, but the client doesn't like it.

    Is there ANY possible way to separate posts onto different pages without using categories. or is there a way to use categories and change what is displayed in the addressbar? Thank you so much for your help.

  6. Harshida_1909
    Member
    Posted 2 years ago #

    I have same problem how to link the my post to different pages without using any categories, if found any solution plz update in this link i hope u will give the response using this link

  7. fweeeb
    Member
    Posted 2 years ago #

    You can do this without the use of plugins as I've just discovered. It almost seemed too easy, so I've got to test it further, but here goes...

    Apologies if this is obvious:

    - Create a new PHP template file for each category, named "category-#.php"(#=the preferred category number). Make sure it's assignable by putting the Template Name at the top of the file.

    - In the new template, insert the following query_posts line just before the loop, inserting the category name in place of '#':
    <?php query_posts('category_name=#'); ?>

    - Go and Edit the Page that you'd like to display posts in this category, eg 'Events', and assign it the relevant template you've just created.

    - Make sure none of the pages you are going to assign as Category pages are selected as your 'Posts Page' in Settings > Reading.

    - Go to Settings > Permalinks and insert /%postname%/ in Custom Structure field, then save changes. This will give you nice URLs, and not "/?cat=*".

    Done! Now selecting the relevant Page (eg Events) in your main navigation will take you to a page showing all posts from the assigned category. Hope that works for other people...

  8. luthan
    Member
    Posted 2 years ago #

    @tweeeb

    man you rock!
    your post basically solved my issue that I have been trying to solve for 2 days
    the page2cat plugin simply didn't work for me

  9. fweeeb
    Member
    Posted 2 years ago #

    @luthan

    Glad to help!

    Actually, as a correction to the above, it turns out you don't really need to name your template "category-#.php". You can call it anything you like and it will still work, although it may be good practice to name your templates like this.

Topic Closed

This topic has been closed to new replies.

About this Topic