Correspond to the two meta_key

Home Forums Feature Requests Correspond to the two meta_key

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #14719
    tsubasa
    Participant

    Hi-
    Please teach me.
    Correspond to the two meta_key.

    ex.
    meta key “color” meta_value “blue”
    meta key “animal” meta_value “lion”

    It’s tried the following, but I have failed.
    [mashup query=”meta_key=color1&meta_value=blue&meta_key=animal&meta_value=lion posts_per_page=-1″]

    #14724
    Chris
    Keymaster

    Hi,

    Unfortunately WordPress will only let you use one meta field in a shortcode query. If you need two, you will need to use PHP to show the map. There are some examples here:

    http://codex.wordpress.org/Class_Reference/WP_Query

    #14727
    tsubasa
    Participant

    Hi Chris

    Thank you for fast Reply.
    I will try the reference URL.

    Mappress is very nice.

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.