WordPress.org

Ready to get started?Download WordPress

Forums

List category posts
Hide Custom Field's name/ Show only Custom Field's value (3 posts)

  1. freshes
    Member
    Posted 1 year ago #

    Hi there, it's me again ;)

    I wonder if it's possible to prevent the custom field's name from showing in my list. I want to display only the custom field's value, right now it displays the following: "name: value"

    short-code: [catlist name=news customfield_name="name" customfield_value="value" customfield_display=name]

    Maybe some modifying in the template-php is required? Help is much appreciated.

    http://wordpress.org/extend/plugins/list-category-posts/

  2. jacky_K
    Member
    Posted 1 year ago #

    See /include/CatList.php in plugin template/

    See $lcp_customs .= "<div class=\"lcp-customfield\">". $something . ":" . $value . "</div>";
    change to
    $lcp_customs .= "<div class=\"lcp-customfield\">". $value . "</div>";

  3. jlixerkun
    Member
    Posted 11 months ago #

    Thanks for this hint. Awesome Plugin, huh?

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.