WordPress.org

Ready to get started?Download WordPress

Forums

List category posts
Custom Field display without the actual fieldname displayed (5 posts)

  1. hodyshoran
    Member
    Posted 2 years ago #

    Hello,

    maybe I am doing something wrong, please help me out.
    If I use the string:

    [catlist name=interactive-reviews customfield_display=spielname,system]

    I get the following output:

    • PS3 Review: Fifa Street 4
    spielname : Fifa Street 4
    system : Playstation 3
    • PC Game Test: Confrontation
    spielname : Confrontation
    system : PC

    But rather than having the name (headline) of the article display I would prefer only to have the Games name and its system display but without actually stating the fieldname in the output.

    So that it would look like this:

    Twisted Metal – Playstation 3

    So that I can simply add the "more" clause to it. How do I enforce this?

    Thank yout

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

  2. Eckstein
    Member
    Posted 2 years ago #

    I need this exact thing! Anyone know how to make the custom field ID NOT display? I can't really use this plugin until there is a solution.

  3. littleoracle
    Member
    Posted 2 years ago #

    I found a fix for this. Not ideal, as you have to edit the plugin itself, so YMMV.

    Go into /include/CatList.php

    replace line 168 with
    $lcp_customs .= "<div class=\"lcp-customfield\">". $value . "</div>";

    the original looks like
    $lcp_customs .= "<div class=\"lcp-customfield\">". $something . ":" . $value . "</div>";

    it's the $something variable that's pulling in the label.

  4. Eckstein
    Member
    Posted 2 years ago #

    Sucks that we have to edit the plugin directly, but good find! I'll just have to save a replace for each update. At least reverting back doesn't drastically break anything, but hopefully this becomes an option to turn on/off in the future.

  5. nbruley
    Member
    Posted 1 year ago #

    Thanks for this! Works well. If this option becomes available please post.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic