Support » Plugins and Hacks » Hacks » how to allow word press-post visitors to embed the post in their website

  • 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

Viewing 2 replies - 1 through 2 (of 2 total)
  • jay12345

    (@jay12345)

    I have same problem with

    http://jobhelp.co/

    also

    Moderator bcworkz

    (@bcworkz)

    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>

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘how to allow word press-post visitors to embed the post in their website’ is closed to new replies.