title of previous and next pages not displaying

  • principalegg

    #9803

    Hi, I have next and previous post on my separate post pages at the bottom of the page but not the title of these posts. Can I change it so they add the titles instead?

    Also I added code to my child page.php in order to add next and previous to my pages because this wasn’t there and this appears at the end of the page where I want but also on the static front page where I didn’t want it. Can I remove this from the front page? And make the title of the pages appear at the bottom of the pages instead of previous and next?

    Many thanks in advance for considering this request.

    principalegg

    #44617

    Sorry and this was the code I added to the child page.php file:

    <div class="navigation">
    <?php if (!empty($prevID)) { ?>
    <div class="alignleft">
    <a>"
    title="<?php echo get_the_title($prevID); ?>">Previous</a>
    </div>
    <?php }
    if (!empty($nextID)) { ?>
    <div class="alignright">
    <a>"
    title="<?php echo get_the_title($nextID); ?>">Next</a>
    </div>
    <?php } ?>
    </div><!-- .navigation -->
    Mod

    Kenneth John Odle

    #44619

    Put code in between backtick (

    Code:
    `

    ) characters. It’s usually located above the Tab key on your keyboard. I have fixed this for you.

    Quote:
    Can I change it so they add the titles instead?

    Link to site? Link to a page where this child theme page is applied?

    principalegg

    #44620

    Hi Kenneth

    Thanks for doing that for me.

    The website is http://www.principalegg.com

    I’d be very grateful if you could have a look.

    Thanks

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.