Code snippet killing child pages display
-
Howdy folks…
I’m doing a site for a client. It’s got a div that displays content from a specific page called Marquee.$post_id = 31; $post = get_post($post_id); if($post->post_content != "") : echo get_the_post_thumbnail( 31 ); echo get_post_field (post_content, 31); endif;
The problem is that the client also wants a list of child pages in the sidebar. I’ve used various plugins as well as manually coding it, but the child pages won’t show up. The only thing showing up is “Marquee”, the title of post_id 31.
I’ve tried using exit and return but that kills the entire page (i.e. nothing loads after the Marquee div)
Makes no sense to me why the snippet would interfere with calling the pages list, but it does. Any insight would be greatly appreciated.
THANKS!!
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Code snippet killing child pages display’ is closed to new replies.