• Resolved karlpurdon

    (@karlpurdon)


    I’m using WP to run my website which is going to be relatively small

    i have set the permalinks to /%category%/%postname% to show the catagory the page is in and the name itself, at the moment it only comes up as (for example) mcrmy.co.uk/helena/ because i can’t catagorize the pages, for that section i want it to be mcrmy.co.uk/lyrics/helena.

    How can i do this / catagorize pages ?

    Thanks,

    Karl

Viewing 8 replies - 1 through 8 (of 8 total)
  • moshu

    (@moshu)

    You cannot. The Pages are always assigned to the default category of your blog, but that’s just an internal thing for the WP engine.
    Practically consider that Pages do not have categories.

    Thread Starter karlpurdon

    (@karlpurdon)

    Ah, any ideas how i can work around that ?

    moshu

    (@moshu)

    You can have sub-Pages and (obviously) parent Pages.
    So, you could have a parent = lyrics and zillion subpages to it. Does this help?

    Thread Starter karlpurdon

    (@karlpurdon)

    Ah thats brilliant :)!
    Anyway i can stop the sub-pages being listed under the parent on the main page its gonna make it huge! ?

    moshu

    (@moshu)

    Template_Tags/wp_list_pages – Just use the “depth” parameter, e.g. set to “1” will display only the first level parent pages (=lyrics and none of its children).

    Thread Starter karlpurdon

    (@karlpurdon)

    I can’t find where i edit the depth

    moshu

    (@moshu)

    e.g.
    <ul>
    <?php wp_list_pages('sort_column=menu_order&depth=1&title_li=<h2>' . __('Pages') . '</h2>' ); ?>
    </ul>

    Thread Starter karlpurdon

    (@karlpurdon)

    Awesome ??

    Thanks a lot mate!

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