• Resolved David M.

    (@david-m)


    Hi, and thanks for this extraordinary plugin.

    I created a custom template based on this topic, in order to get post thumbnail+title:

    https://wordpress.org/support/topic/how-to-use-with-a-custom-template/

    This custom template works when inserting posts, but displays nothing when inserting pages.

    Is there anything wrong? Any suggestions? Thanks a lot!

    This is the complete code for the template:

    <?php while ( have_posts() ) : the_post(); ?>
        <div <?php post_class(); ?>>
            <a href="<?php echo the_permalink(); ?>">
                <?php the_post_thumbnail(); ?>
                <header class="insert-page-header">
                    <h3 class="insert-page-title">
                        <?php the_title(); ?>
                    </h3>
                </header>
            </a>
        </div>
    <?php endwhile; ?>
    • This topic was modified 9 years, 5 months ago by David M..
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Custom template not working with pages’ is closed to new replies.