We're merging with GenerateBlocks! Learn more here.

[Support request] More than one metavalue for a metakey?

Please login to receive premium support.

Support for the free plugin can be found here.

Home Forums Pro Support More than one metavalue for a metakey?

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
  • #24331

    Hello there,

    I came here to ask if it’s possible to use more than only 1 meta value for a specified meta key.

    So can I use the condition like this:
    Metakey = price
    Metavalue 1,2,3,4,…

    or something like:
    metakey = price
    metavalue = <100



    Not exactly sure I fully understand what you’re trying to achieve.

    To clarify: Are you trying to do something like this?

    Let us know.


    Thanks for your reply.
    I think that’s not what I was looking for. Let me explain it for you.

    I have a feed with several products that were imported into wordpress. For example T-shirts.
    So every post has a metakey “price” and a single value – for example “10”.

    post1 – price: 10
    post2 – price: 9
    post3- price: 12

    I want to create a page with ShowPosts that shows every post with a the metakey “price” where the value is less than 15.
    Which means I wanted to know if I can add something to the shortcode like this: “between 0 and 15” or “<15”.

    I tried several options in the backend as well.


    Ah that makes sense.

    This will require a bit of alteration on the list’s query.

    That said, check Tom’s answer here about it:

    to add more to Tom’s answer, you’ll need to set a relation to be able to do a compare on a meta key value.

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