Query Posts
displaying content from custom fields (6 posts)

  1. photocurio
    Posted 1 year ago #

    There are 2 different threads hereabouts asking for help displaying or using values from custom fields in Query Posts loops. Both have been closed with no response.

    There is a meta_key box in the Query Posts interface, where I can select the key that I want, but no way that I can see to output the value.


  2. Bill
    Posted 10 months ago #

    me too!

  3. photocurio
    Posted 10 months ago #

    Bill, I have since come up with a better way to manage custom fields. This plugin is the solution:

    It does several things:

    • you have your custom fields well labeled in your edit-post screen (in the admin), so its much easier to remember what each one does.
    • The plugins' documentation is very helpful in regard to the many ways to display or query custom fields.
    • It lets you assign certain groups of custom fields to particular pages or taxonomies

    I like this plugin so much that I even paid for the premium Repeater Field addon.

  4. photocurio
    Posted 10 months ago #

    p.s. I'm noticing that my original post was on how to query for custom fields within the Query Posts plugin.. Now I see that I did not solve that problem. I'm not using Query Posts in this solution.

    Instead I write my own loop in the theme, and query the fields with typical php.

  5. Bill
    Posted 10 months ago #

    Thanks photocurio! I am also aware that that plugin is popular among developers I know.

    My problem is a bit different than yours. I am trying to assign a taxonomy (ideally the same categories used for posts)to Custom Post Types then filter and display those types with the custom post types plugin based on that taxonomy. Any ideas?

  6. photocurio
    Posted 10 months ago #

    Well, I know the Custom Post Type UI plugin makes it easy to make custom post types and taxonomies. I don't know if the Query Posts plugin can get a custom taxonomy or not.

    Are you building your site only in the admin, with plugins, or are you making a theme or child theme also? If you are making theme, it can be very useful to write those loop queries yourself. You can do lots of stuff that's outside the scope of Query Posts. But Query Posts loops can be modified from the admin, so both methods have their place.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Query Posts
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.