Advanced Post List
advanced custom fields (6 posts)

  1. robertotrump@gmail.com
    Posted 3 years ago #

    I am trying to filter by custom fields. But when I select the custom field group name, nothing else happens.

    BTW, I am running the identical plugin on two identical sites, and one shows the advanced custom fields feature while the other doesnt.

    Any help on filtering by custom fields would be really appreciated.

    BTW, this is one powerful plugin. Well done!


  2. EkoJR
    Plugin Author

    Posted 3 years ago #

    I don't believe I do have a 'filter' set up for custom (meta) fields, but I do have a method to display them. However, after switching to WP_Query Class, it has allowed me to add more filters to the plugin. There were a few things that I left out intentionally to add later, and meta data was one of them unfortunately. That and the timeline filter (...and maybe a few others) were some which required a certain design, and I didn't want to over burden myself already. I do plan to add it later down the road though.

    If your just trying to display them. You might want to double check and/or triple check your labels and values. Everything should be fully functional to display it, so there's probably a typo somewhere. Usually a common mistake.

    Anyways, glad you enjoy the plugin. I still give Kalin most of the credit for creating the framework, but there's still more to come =)

  3. robertotrump@gmail.com
    Posted 3 years ago #

    Sorry, I don't quite get this.

    So I you saying I can currently do it or I can't?

    And if I can how?

  4. EkoJR
    Plugin Author

    Posted 3 years ago #

    To filter by the custom fields isn't currently supported, but to display them from each post/page you can.

    This is the internal shortcode that I am referring to.
    [post_meta name="custom_field_name"] - page/post custom field value. Correct 'name' parameter required

  5. robertotrump@gmail.com
    Posted 3 years ago #

    This kind of copy and paste from the listed short codes is really not clear.

    Please provide a clear example, lets say for a custom field called "field-1", which has a value of "value-1".

    How would I then proceed to create a page with only posts that have the custom field value for field-1=value-1?


  6. robertotrump@gmail.com
    Posted 3 years ago #

    Actually, on second review I see what you mean.;/

    I can add a custom field value by adding:

    <--option value="[post_permalink]">[post_title] -[post_meta name="field-1"]</option-->

    What I want to do however is filter out all posts without a specific value.

    So, show post if field-1=value-1, otherwise don't show.

    I notice that you have an advanced custom fields tab, but when I select it, nothing happens.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Advanced Post List
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic