• I am using the following code on my page (http://datingshakeup.com)

    <a href="<?php echo get_permalink($post->ID); ?>">( <fb:comments-count href="<?php echo get_permalink($post->ID); ?>"></fb:comments-count> Comments )</a>

    to try to add a link to the single post page at the end of each post, and to display the number of comments each post has (using a Facebook plugin).

    At the moment the code <?php echo get_permalink($post->ID); ?> is returning the same url ‘http://datingshakeup.com/on-commitment-and-casual-sex/&#8217; for each post. I would like it to get the return the url for each post individually. Any ideas?

  • The topic ‘get_permalink not working correctly’ is closed to new replies.