• First of all I love wordpress ! But I am a primate when it comes to php, and I would be deeply appreciative of some help with this problem.

    I would like to output data from the custom fields which presents itself as a list. Moreover I’d like to be able to create a link list item with a description.

    Can someone help me with the logic of this ? I would like hypothetically to be able to enter links and description into the custom fields, and have a list of named links outputted.

    I think a lot of people could make use of such a function. What I have in mind is being able to craft very intentional and specific lists of related content underneath a post.

    Thankyou very much

    … this is my early code attempt but I think the logic is really confused… one item is outputted but

    <?php $values = get_post_custom_values("related");
    if ($values[0]!="") {
    echo "<H3 class=\"related\">Related Links:</h3>";
    echo "<ul class=\"related_list\">";
    echo "<li>$values[0]</li>";
    echo "</ul>";
    }
    ?>
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Custom Fields to output a list of links’ is closed to new replies.