You can use these two divs to package the code to achieve this. 


ID ); ?> \
post_title ); ?>
Male ID (\
<a href="
<a href="ID ); ?> \
post_title ); ?>
Male ID (\

It is also important to add a conditional sentence to confirm whether there are thumbnails or posts. For example, you can package the $prev part as a condition, as follows:
ID ); ?> \
<a href="post_title ); ?>
Male code validity check is an important part of word press development, which can not be ignored. Hoping that this post provides some insight, you can now add a single post page map with a preview image to your site or topic. If you want to learn how to create a wordpress blog page map, you can see how to create a digital page map in the previous tutorial WordPress.
If you need further support, especially those who don’t know how the code works, you can get the help of wordpress theme developers. You can also contact me for help.