• Hello,
    I’m using the following permalink structure:
    /%category%/%postname%/
    It gives the best output for me because this makes the full title for each of my articles/pages.

    However when it comes to pages, I get “page” for %category% which isn’t nice, especially if you have a forum, for instance, which gives: home>page>forum

    1/Is there a way to replace the word “page” by its parent page or remove it altogether while keeping the same permalink structure? or
    2/should I forget about that permalink path I use as my titles and replace it with custom titles in each template (page, single etc).

    In case of 2/, what would be the line of code for dynamically creating a path for pages which features the parent page and the page: home>parent page>page ?

    Thanks for your help

    Mikey

Viewing 1 replies (of 1 total)
  • Thread Starter campbelson

    (@campbelson)

    So far I found this line of code to have the parent page display as a link within the page path:

    <?php $permalink = get_permalink($post->post_parent); ?>
    <a href="<?php echo $permalink; ?>">Parent</a>

    this is what I’m looking for but instead of having the word “parent” I would need the parent page’s NAME.

Viewing 1 replies (of 1 total)

The topic ‘Permalinks and title display’ is closed to new replies.