I need to be able to display a View for a specific post_id.
For example, I have a Footer Info Custom Post Type setup, and a Field Group consisting of an email and a phone number field tied to it. I've created a View to display this information.
From everything I've read, I should be able to just get_post($postid) and then render the view:
<?php $post = get_post('260'); // where 260 is the ID of the post of Custom Post Type 'Footer Info' I want to display echo render_view( array('title' =>'Footer Info') ); // where is the view that I'm using to display this footer info ?>
The view renders, however the content it renders is wrong. Instead of showing me the content of the post I have supplied, it just grabs what it finds using the View Query setup for the View.
How do I get render_view to show only the post I have supplied?
thanks!
-m.