Help with advanced filters

This topic is: not resolved

This topic contains 1 reply, has 2 voices, and was last updated by  sc0ttkclark 1 year, 1 month ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #167631

    smelcher
    Member

    I’m trying to put together proper filters to do the following (for PICK fields):
    - Published pages using template X
    - Published pages whose parent uses template X

    Anyone know how to achieve this?

    #167632

    sc0ttkclark
    Keymaster
    Post count: 813

    You could try using a custom input field to build a custom list and output the <select> field, follow the format for your <select> field by looking at pods/ui/input_fields.php example for the ‘pick’ field.

    You can also try this filter, I’ve just copied the line we use to run the filter, you can make your way around from there:

    $result is a MySQL resource, but you can return another MySQL resource (using pod_query), or return an array of items. Below is also another filter you can try, which gives you an array of the data, which you can modify or replace and send back — please note this is newly included in Pods 1.12.4 which is about to be released tonight:

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.

Wordpress Cloud Hosting