• Hey

    I like your simple and effective plugin. But there is one thing I am not able to solve by myself – how to create a feed containing posts filtered by this meta:

    <_advads_ad_settings><![CDATA[a:1:{s:11:”disable_ads”;i:1;}]]></_advads_ad_settings>

    So there is something like two keys defining one value. “Disable_ads” may have two values: 0 or 1, all the rest remains the same. I need a feed containing only posts with value 0.

    This is my full feed with meta values: https://www.receptyprimanapadu.cz/?call_custom_simple_rss=1&csrp_posts_per_page=20&csrp_show_meta=1

    Thanks!

    Jaro

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author danikoo

    (@danikoo)

    thanks
    go to setings -> custom simple rss plugin -> Parameters Tutorial (tab on top)
    there you will find a complete guide

    the plugin does not support serial data as a value. in need to work on it ??

    to your question:

    filter by meta:
    any meta value that exists in post
    · csrp_meta_key (string | optional) – Custom field key.
    · csrp_meta_value (string | optional) Custom field value.!must be specified if meta_key present
    · csrp_meta_type (string | optional) You may also specify ‘csrp_meta_type’ if you want to cast the meta value as a specific type.
    Possible values for csrp_meta_type are:
    ‘NUMERIC’, ‘BINARY’, ‘CHAR’, ‘DATE’, ‘DATETIME’, ‘DECIMAL’, ‘SIGNED’, ‘TIME’, ‘UNSIGNED’
    · csrp_meta_compare (string | optional) default ‘IN’
    ‘LIKE’
    ‘NOT LIKE’
    ‘IN’
    ‘NOT IN’
    ‘BETWEEN’
    ‘NOT BETWEEN’
    ‘NOT EXISTS’

    Display post with meta_key ‘_thumbnail_id’ and meta_value 1448:
    ‘?call_custom_simple_rss=1&csrp_posts_per_page=5&csrp_show_meta=1&csrp_meta_key=_thumbnail_id&csrp_meta_value=1448’

    Display post with meta_key ‘_thumbnail_id’ and meta_value NOT 1448:
    ?call_custom_simple_rss=1&csrp_posts_per_page=5&csrp_show_meta=1&csrp_meta_key=_thumbnail_id&csrp_meta_value=1448&csrp_meta_compare=NOT%20IN

    Thread Starter jma205

    (@jma205)

    Thank you. So, in short, it is not possible to filter by advads_ad_settings meta because it has some strange format of value. Right?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to filter by more complex meta’ is closed to new replies.