Custom Content Type Manager
[resolved] Query all posts with custom_field (4 posts)

  1. teamlinx
    Posted 2 years ago #

    I read through and didn't see this so if I missed it please send me a link.

    I want to query all posts that contain a certain custom_field value.
    So if the custom field was "color" and two posts had this custom field with the value "red" i want to click "red" and be shown the two post that have that value.

    Pseudo Code
    echo '' . print_custom_field('color') . '';

    Any help would be appreciated.


  2. teamlinx
    Posted 2 years ago #

    echo '<a href="'. get_custom_field_links('color', 'red') .'">' . print_custom_field('color') . '</a>';
  3. teamlinx
    Posted 2 years ago #

    Here is the link in the documentation to solve this problem.
    You can also use 'permalink' next to post_title


    good documentation btw!

  4. fireproofsocks
    Plugin Author

    Posted 2 years ago #

    Glad you found a solution -- I try to keep the docs up to date, but there are plenty of other examples and use-cases that should be added. Marking this as resolved.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Custom Content Type Manager
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic