Support » Everything else WordPress » Get permalink for Facebook Sharing

  • Resolved leonardogsouza


    Hi, after trying everything and still no sucess, I had to come here.

    At the end of every post I use the following:

    <center><a href=""><img src=""></a></center>

    [Please post code & markup between backticks or use the code button. Your posted code may now have been permanently damaged by the forum’s parser.]

    The thing is, the address “” I only get AFTER I post the article, so, if I schedule a post, I can not use this function.

    How can I use something like “the_permalink” so I don’t have to put manually the post URL?
    And also, is it possible to put this code, I don’t know, maybe inside single.php so I don’t have to always put manually?

    Thank you!

  • The topic ‘Get permalink for Facebook Sharing’ is closed to new replies.