Support » How-To and Troubleshooting » Permalink Add On Word

Permalink Add On Word

  • Hi, I’m trying to add a word to the end of a permalink but I can’t seem to get this right. Right now, the “-arbitrary-word” is not appear directly after the permalink. Basically, I’m linking the featured image to a page with the same URL + “-pdf”. There’s probably a cleaner way of doing this but I can’t find a way.

    Current URL

    Desired URL

    echo '<a href="' . $permalink = get_permalink($post->ID) . '-pdf' . '">
    echo </a>
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Permalink Add On Word’ is closed to new replies.