• Resolved eimaste

    (@eimaste)


    hello,

    we have a website with 3 content types (CT1, CT2, CT3), each having their own unique category (C1, C2, C3). all posts have map coordinates.

    from shortocde helper we can show lets say CT1 with specific terms form corresponding C1
    [travelers-map post_types=CT1 custom_tax=”C1=term”]

    we’d like to show all 3 content types with specific term from each category.
    [travelers-map post_types=CT1,CT2,CT3 custom_tax=”C1=term&C2=term&C3=term”]
    which returns nothing, because it expects any post to have terms on all 3 categories

    so maybe if there was a different syntax like:
    [travelers-map post_types=CT1 custom_tax=”C1=term OR post_types=CT2 custom_tax=”C2=term OR post_types=CT3 custom_tax=”C3=term”]
    or
    [travelers-map post_types=CT1,CT2,CT3 custom_tax=”C1=termORC2=termORC3=term”]

    is this possible?

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

    (@socrapop)

    Dear @eimaste,

    Unfortunately, no it is not possible right now, however it would be a nice addition, I’m adding it to the backlog.

    Unfortunately I have heavy working days right now and no motivation to add features on Travelers Map, so it will have to wait :/

    But in the meantime, you could bypass your problem, maybe by adding a mutual custom taxonomy to all 3 post types, so you could search by that taxonomy, or by adding tags maybe?

    Have a nice day,
    Camille

    Thread Starter eimaste

    (@eimaste)

    hey,

    thanx for your response.

    in our first approach the 3 custom taxonomies was one shared as you suggest. that created other kind of problems, so we went with 3 separate.

    anyways if and when is implemented we can integrated then.

    thanks again for the most useful map plugin

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘ability to have OR in shortcode filters’ is closed to new replies.