WordPress.org

Ready to get started?Download WordPress

Forums

"the_permalink()" issue (3 posts)

  1. jvandelaar
    Member
    Posted 2 years ago #

    Hey all, I've searched to see if this has been asked before but couldn't find anything similar.

    I'm making a page template that will list posts from a specific category in a table, and will only display the posts custom fields. This is working awesomely!

    One issue I haven't been able to figure out is how to make any of the values link back to the post it's calling data from.

    [code moderated - please follow the forum rules for posting code]

    Have been trying to use the_permalink() and the_title() but isn't linking. Any help?!

  2. Rescuework Support
    Member
    Posted 2 years ago #

    You should not use <?php inside <?php.

    This code shown below should work.

    echo '<td width="200px"><a href="';
    the_permalink();
    echo '" title="';
    the_title();
    echo '">';
  3. jvandelaar
    Member
    Posted 2 years ago #

    Thanks heaps Ounziw! Worked a treat!

Topic Closed

This topic has been closed to new replies.

About this Topic