Specifying multiple page_ids when using Query String Looper Provider

I have a CPT set up called ‘brand’, in which I want to specify particular product range pages for that brand (up to three using Post Object selector from ACF plugin).

How would I go about building the correct Query String in a Looper Provider?

So far, I have the Query String working correctly at: page_id={{dc:post:meta key=“range_link”}}

But I would also like to have range_link_2 and range_link_3 listed in the Looper Provider too.

I have tried page_id={{dc:post:meta key=“range_link”}},{{dc:post:meta key=“range_link_2”}},{{dc:post:meta key=“range_link_3”}} but I’ve not been successful.

Thanks

Hello @candidcreative,

Thanks for writing in! You should be using this query argument instead:

array( 
  'post_type' => 'page', 
   'post__in' => array( 1, 2, 3 ) 
)

Which would give you post_type=page&post__in%5B0%5D=1&post__in%5B1%5D=2&post__in%5B2%5D=3. If you replace it with the dynamic content, you may have something like:
post_type=page&post__in%5B0%5D={{dc:post:meta key="range_link"}}&post__in%5B1%5D={{dc:post:meta key="range_link_2"}}&post__in%5B2%5D={{dc:post:meta key="range_link_3"}}

Best Regards.

Thank you, that’s perfect!

You are most welcome @candidcreative

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