WordPress.org

Ready to get started?Download WordPress

Forums

Unable to use dynamic urls in links (1 post)

  1. Tim
    Member
    Posted 10 months ago #

    I am trying to use dynamic links to certain pages on my site.
    I looked it up in the codex and found the ways to do this, but it is not working.
    I have tried the following methods:
    <a href="<?php echo get_permalink(ID); ?>">text</a>

    Not only did this not create a useable link, it caused the entire link text to completely vanish from my page.

    I have since changed the links to <a href="?page_id=822">text</a>

    but this is not a permanent solution bc when i change the permalinks, these links will break.

    site is http://americanindustrialinc.com/wp

Reply

You must log in to post.

About this Topic