WordPress.org

Ready to get started?Download WordPress

Forums

List category posts
Pass tag parameter via custom fields (3 posts)

  1. RiccardoP
    Member
    Posted 1 year ago #

    Hi, is possible to pass the tag parameter by a post custom fields? For example
    [catlist tag="customfield_value"]?

    Thank you.

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

  2. beniEllis
    Member
    Posted 1 year ago #

    This seems to be working for me:

    [catlist customfield_name="whatever_name" customfield_value="whatever_value"]

    From the plugin description:

    custom fields - To use custom fields, you must specify two values: customfield_name and customfield_value. Using this only show posts that contain a custom field with this name and value. Both parameters must be defined, or neither will work.

    customfield_display - Display custom field(s). You can specify many fields to show, separating them with a coma.

  3. RiccardoP
    Member
    Posted 1 year ago #

    Thanks for the reply, but i need to populate the content of tag="" with a custom field.

    I use a text widget in sidebar with [catlist tag="$customfield_value" numberposts=5 excludeposts=this] inside. In this way i can change the content of tag="" by adding a custom field in post.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic