WordPress.org

Ready to get started?Download WordPress

Forums

Post attribution? (4 posts)

  1. Dan Griffiths
    Member
    Posted 4 years ago #

    I am looking for a plugin that will allow the addition of an attribution-type field to each post. Any suggestions?

  2. MichaelH
    Member
    Posted 4 years ago #

    If you don't find one, consider using Custom Fields.

  3. tugbucket
    Member
    Posted 4 years ago #

  4. Dan Griffiths
    Member
    Posted 4 years ago #

    I ended up adding the following to index.php in the post footer:

    <?php
    $customField = get_post_custom_values("attribution");
    if (isset($customField[0])) {
      echo "<a href=\"$customField[0]\">Attribution</a>";
    } else {
      echo "No Attribution"; }
    ?>

    and adding a custom field called 'attribution'. Works great!

Topic Closed

This topic has been closed to new replies.

About this Topic