• This is mostly working as I had hoped. However, I need to filter the automatically-added CPT items by a specific Advanced Custom Fields field. I’m not seeing how to do this with the filters provided.

    Sure hoping this plugin is still being supported, because this would be immensely helpful.

    Thanks in advance.

    ~Laura

Viewing 1 replies (of 1 total)
  • Plugin Author ImportWP

    (@jcollings)

    Hi Laura,

    I have just had a quick look through the plugin code, its seems that you should be able to alter the arguments passed to the auto populated custom post type by using the following filter

    ‘jcs/post_query_args’

    This filter has only one argument passed to it which is the conditions to be sent to the WP_Query, you could use this to check if its populating from you custom post type then you could user the WP_Query meta_query to query using your acf field.

    Hope this helps
    James

Viewing 1 replies (of 1 total)
  • The topic ‘Filter CPT by meta query?’ is closed to new replies.