WordPress.org

Ready to get started?Download WordPress

Forums

how to allow word press-post visitors to embed the post in their website (3 posts)

  1. jay12345
    Member
    Posted 1 year ago #

    Dear Sir,

    I am new to wordpress with less knowledge of php.

    I want to allow my visitors to embed my wordpress website post in their website.

    My website is http://sahitya.nepalese.co/
    ......................................
    For blogger, there are code - :
    http://www.ravisaive.in/2012/01/add-link-to-this-post-links-below.html

    so that blogger visitor can embed the blog post to their website.

    Like, web visitor of this site can embed the post in their website.

    ........................................

    Could you please, any one, help me to with code.. so that i can allow blog visitors to embed the post in their website.

    The code that is supposed to embed should be below the post so that visitors can easily copy the code.

    Thanks.

    Jay Thakur

  2. jay12345
    Member
    Posted 1 year ago #

    I have same problem with

    http://jobhelp.co/

    also

  3. bcworkz
    Member
    Posted 1 year ago #

    You would modify your content.php template to output the desired text at the end of the loop. The actual URL can come from the get_permalink() function. The remaining formatting can be mostly output as plain text inside <pre> tags, except angle brackets should be converted to their html entity codes, which I can't seem to enter into this forum without it being screwed up, so in the following code, substitute an & character for any # character

    So something like this would be added for a html link, altered as noted:

    HTML Link:<br>
    <pre>#lt;a href="<?php echo get_permalink; ?>"#gt;<?php echo get_the_title(); ?>#lt;/a#gt;</pre>

Topic Closed

This topic has been closed to new replies.

About this Topic