• I did this WAY LONG AGO, and forgot how I did it. What I did was: In the “Custom Field” box, i would type “site” and then in the other box, I would put in the source link and on the main page when I published post, It would say:

    Posted by xxxx at 13:37 | Source Link

    And the “Source Link” would link to the source. How would I do this again?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Possible you used a plugin originally, but with just WordPress internals, you could add this to your template where the “Source Link” would display (yes, it’s a little geeky):

    <a href="<?php $custom = get_post_custom($post->ID); echo $custom['site'][0]; ?>">Source Link</a>

    If there’s a need to test for it:

    <?php
    $custom = get_post_custom($post->ID);
    if($custom['site'][0]) :
    ?>
    <a href="<?php echo $custom['site'][0]; ?>">Source Link</a>
    <?php endif; ?>

    thanks, Kafkaesqui. this helps me too. it works perfectly. thanks.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Add sources to posts – need plugin’ is closed to new replies.