Adding an automatic link to a Post

79 views
asked May 5, 2012 in Website Builder by Susan3 (880 points)
hello there
I want to add an automated master link to a republished post. I want this link to be inserted automatically when I publish an article. I have a few wordpress sites and when I post a new article at my master site, it is automatically copied as well to my other site. On my other sites I would like to have a link at the bottom of the article that is automatically created and inserted and that, when clicked on, opens the original article at the master site.
Can anyone help me do this?
Thanks

1 Answer

0 like 0 dislike
answered May 5, 2012 by moon_tag (1,380 points)
Try this code

<?php
$string = get_permalink();
$string = "$string";
$malestr = str_replace("textsite", "www", $string);
?>
Image Article: "><b><?php the_title(); ?></b>
...