Hello,
You can insert these post IDs to the Filter Settings > Include Only field.
Yes I know that, but I want to automate this, so that once a post have been created by the system automatically, the list should update accordingly so that the post ID gets included. So I would need to update the “Include Only” field programmatically by code rather than by doing it manual by hand.
Thanks in advance!
// Robin
Dear Mr Robin,
Thank you for your information.
Inserting dynamic post IDs is available in Content Views Pro.
Here is detail document http://docs.contentviewspro.com/reuse-a-view/
The post_id parameter will work for your need.
For example, you got list of post IDs in a variable. You can use this code:
$post_ids = implode( ',', $post_ids );
echo do_shortcode( "[pt_view id=VIEW_ID post_id='$post_ids']" );
Best regards,