Support » Fixing WordPress » Unable to use dynamic urls in links

  • Tim


    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

  • The topic ‘Unable to use dynamic urls in links’ is closed to new replies.