• I am sure someone can solve this one quickly. I want to build a link to my archive page. How do I build this link so that if I rename or change my permalink re-writes it will still work?

Viewing 2 replies - 1 through 2 (of 2 total)
  • I used the page_id – that never changes and it works even if I have nice permalinks. And to avoid all the mess with relative path I did like this:
    <a href="<?php bloginfo('url'); ?>/?page_id=10">Archives</a>

    Thread Starter monkeynotes

    (@monkeynotes)

    Yes, I remember that method now. Dang, I ended up doing it like this:

    <?php echo get_page_link(54) ?>

    Thanks anyway.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Build a link to a page’ is closed to new replies.