I have a wordpress website which uses posts, pages and custom post types, I am trying to dynamically bring in custom post types into a post at the bottom.
To do this I am using a plugin called secondary html content and what I do is I write the id numbers i need for example 350,360 into the related-programs secondary html box.
I have then created a post called Global Citizenship in Nursing you can look at it here:
[url removed, login to view] as you can see down the bottom I have added the seondary html side bar using this php code:
$kelly = the_secondary_content( 'related-programs' );
when i echo $kelly nothing shows up what i am trying to do is get the numbers i have put into the secondary html content box on the post page to show up in:
$services_args = array(
'post_type' => 'service',
'posts_per_page' => 2,
'paged' => $paged,
'orderby' => 'title',
'post__in' => array($kelly),
// 'post__in' => array(350,360); it works perfect if i add numbers in here
'order' => 'ASC'
However I can't get it to work. I am sure it is a simple fix but because I am not good with php this is my problem.