Looper provider wp query string for manual post ids

hello,

i want to display via looper wp query string several manual post content via the post id.

e.g. post_type=post&post_id=1948,1939,2013

what is the right string for the post id?

and it should display in the post id order i have given
(so not in order of date, title, etc)

cheers!
oli

Hi Oli,

Thanks for reaching out.
While using multiple post IDs, you need to use the post__in parameter and array as a value. You need to create an array of arguments for the Query and then just use the http_build_query function to format it into the Query String.



Hope it helps.
Thanks

1 Like

thanks tristup. i came back on one service on this. :wink: oli

Hi Oli,

You are most welcome.

1 Like

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.