Forums

[Plugin: ProjectManager] Feature Request: Return results with certain value in ANY field (not just c (1 post)

  1. randyhoyt
    Member
    Posted 5 months ago #

    Currently, the shortcodes have a way to specify a particular category (e.g., cat_id=4) that can be used to filter the results. It would be great if any field could be used in this manner. The WordPress get_posts() function has two parameters that work like this, meta_key and meta_value.

    $meta_key and $meta_value
    (string) (optional) Only show posts that contain a meta (custom) field with this key and value. Both parameters must be defined, or neither will work.
    -- http://codex.wordpress.org/Template_Tags/get_posts

    It would be great to be able to use the shortcode like this:

    [project id=1 field_id="formfields-2" field_value="2009"]

    http://wordpress.org/extend/plugins/projectmanager/

Reply

You must log in to post.

About this Topic

  • RSS feed for this topic
  • Started 5 months ago by randyhoyt
  • WordPress version: 2.7.1
  • This topic is not a support question