Forums

Every category its own page! (6 posts)

  1. auxillary
    Member
    Posted 4 years ago #

    Hi, I have been looking for this subject for hours and also the very extended docs section. Maybe it is just too extended that I can't find it. So here is my question then.

    I want to set up kind of a portfolio. So for each category, I want to have their own Page (Parent Page Works - sub pages). My question is really this how to link 1 category to 1 Page?

    So interactive Page shows only the posts in the category Interactive.

    Furthermore please explain in detail as I am NOT a programmer which is my flaw (I know).

    TIA,

    Eric

  2. rudyboles
    Member
    Posted 4 years ago #

    Don't know exactly what you want to achieve, but maybe it is useful to know that the link to a individual category is ?cat=x where x stands for the category id.

  3. moshu
    Member
    Posted 4 years ago #

    That's not a task for Pages > see http://codex.wordpress.org/Pages
    It should be accomplished by using Category Templates:
    http://codex.wordpress.org/Category_Templates

    Briefly, it works like this: you create a category-XX.php template for each category, where XX is the cat ID#.
    You can style them totally differently. Put those template files in your theme's directory.
    WP is "smart" enough to recognize them - so clicking on Interactive category it will select the proper template and display only the posts from that category.
    More explanation on how this happens see in http://codex.wordpress.org/Template_Hierarchy

  4. auxillary
    Member
    Posted 4 years ago #

    Hmmmm, did that, tried that, failed at that! I made category templates like mentioned, but when calling through my custom buttons (linkage: http://www.mydomain.com/wordpress/?cat=4) I get an error: Parse error: parse error, unexpected $ in /home/sites/site194/web/wordpress/wp-content/themes/squible/category-4.php on line 50

    Uhm ok?

  5. moshu
    Member
    Posted 4 years ago #

    I have no idea what do you have on line 50 :)
    (and last time I checked squible was in Alpha state - ask the authors)

  6. auxillary
    Member
    Posted 4 years ago #

    I changed the theme (again) and made some modifications. I think I used a bad php file. Probably changed something I shouldn't have.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags