Archived topic
dispatch site template previous and next issues
3 replies · Started by nomadiceman on June 21, 2020
Ive installed the dispatch site template. At the bottom of posts i am getting this code instead of the images as seen in the demo
1, 'include' => $prevPost->ID ); $prevPost = get_posts($args); foreach ($prevPost as $post) { setup_postdata($post); ?>
1, 'include' => $nextPost->ID ); $nextPost = get_posts($args); foreach ($nextPost as $post) { setup_postdata($post); ?>
Just to clarify, this code is showing on the live post pages at the bottom
Hi there,
try adding the PHP Snippet provided here:
https://docs.generatepress.com/article/generate_hooks_execute_php/
great thanks
You're welcome