• I have created a category but need to link this category to a specific page so that the posts only appear on that page. My problem is linking the category to the specific page, how do I do that?

Viewing 7 replies - 1 through 7 (of 7 total)
  • Well it’s not necessary to do anything, because if you click on a Category link, it takes you to that Category’s archive.

    Resources:
    Template Hierarchy
    Category_Templates
    Stepping Into Templates

    Thread Starter neurolab

    (@neurolab)

    The category doesn’t show up, I need the category link to show up in a specific page.

    The category “doesn’t show up”… where?
    Please, forget your preconception about linking a category to a Page – that’s not the way to do it.

    Give link and explain what the desired result is: i.e. WHAT do you want to achieve. Leave the HOW for us.

    I have the same question.

    I created an ANNOUNCEMENTS page and I have an Announcements Category

    I want all posts categorized as Announcements to appear on my Announcements page.

    Can this me done?

    Wrong.
    You do NOT need any Page titled Announcements. Just the category. And clicking on the category name it will take you to a page (webpage not Page that shows all your posts in that category.

    Why would you need a Page for that???

    lol

    I don’t know! I”m new at this.

    I’ll try it your way

    Thanks

    I believe I’m trying to accomplish the same thing. I would ask that if a moderator is feeling like a jerk, then to please NOT reply here, vent your frustrations somewhere else. I don’t feel like getting yelled at right now.

    Anyways…

    I have a page titled “News”, and I want POSTS with the category of News to show up on this page called News. I want the posts from the category of News to be EXCLUDED from the main page.

    Yes, I’ve read the pages and pages of documentation, and I turn to the forums.

    I’ve created a page template called news.php. I’ve entered in the loop “beginning” and “end”, but I’m just unsure about what goes in the middle. I’m guessing it’s something like:
    <?php if (in_category(‘3’)) continue; ?>

    (news is category 3) This doesn’t seem to be working though, I’m sure I’m just missing a bit of code.

    I also know that I want to EXCLUDE category 3 (news) from my main page, but I’ll get to that after I complete the first step.

    Any suggestions? And seriously, don’t give me a link and say “read this”. On every page, there are 10 more links to read. This stuff is supposed to be easier than this.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Link a category to a specific page’ is closed to new replies.