• Resolved Ruud van Strijp

    (@ruuddieboy)


    I found a plugin for WP 2.5 which makes you able to link Pages to Categories, but too bad this version doesn’t work with 2.8. The administrationpage lets me make links, but if I click on the page-button on top of my WP site, I go to a normal page site, instead of a category site.

    Is there any other way to get this done?

Viewing 3 replies - 1 through 3 (of 3 total)
  • you would use templates for individual pages in 2.8.

    if you create a “mypagetemplate.php” file in your theme folder and place at the very top of this file – this code:

    <?php
    /*
    Template Name: mypagetemplate.php
    */
    ?>

    wordpress automatically interprets it as a template file that you can assign to individual pages.

    (tip: copy paste the index file code into your template, just to have something to work with…)

    This page may then be filtered for different categories by using either query_posts calls or in_category calls in the template file.
    read the help files for each function.

    it is all very clear as sausage water 😉

    *edit: There is a strong reason to use query_posts instead of in_category, because ‘the loop’ still counts up using the in_category call, and if you have 10 non category in a row, your page won’t display anything, while the query_post will display a clean 10 post regardless, (if that is your setting) everytime and anytime…

    If understanding the question, consider using this technique:

    How to easily display links to both Pages and Categories in the blog navigation header?

    Thread Starter Ruud van Strijp

    (@ruuddieboy)

    Thanks MichaelH, the method in that link did the trick for me! 😀
    I installed the ‘Page Links To’ plugin together with ‘My Page Order’, linked the Pages to the Category urls and voila 🙂

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Linking categories to pages’ is closed to new replies.