Support

Account

Home Forums General Issues Getting fields of multiple posts with one call

Helping

Getting fields of multiple posts with one call

  • Hi

    As the title says – for efficiency purposes, how do I get all meta values of multiple posts with one call?

    Thanks

  • hi,
    if you are trying to get them inside a loop (setting the specific post id you want in your arguments or getting all your posts).
    i would create an empty array before the loop then in the loop create a new array inside that array with the post id and push inside that array the meta you want in a key=>value format.

    once the loop finish you should be able to get from that array the informations you want.

    is that what you was looking for?

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

The topic ‘Getting fields of multiple posts with one call’ is closed to new replies.