• 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

Viewing 8 replies - 1 through 8 (of 8 total)
  • You mean assign Categories to Pages?

    Look at this plugin: https://www.ads-software.com/extend/plugins/page2cat/

    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?

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

    https://www.ads-software.com/support/topic/256166?replies=1

    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.

    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

    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…

    @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

    @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.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Pages with Categories’ is closed to new replies.