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:
<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.