• Resolved cellbits

    (@cellbits)


    I somehow managed to make a custom page template that displays blog posts on page with formatting and styling just as I wanted by incorporating some parts of my theme as well.

    As is, it works perfectly when page is accessed directly. Now I wanted to add another loop that displays the page content as well (from WYSIWYG), above the blog post loop. I added

    <?php while (have_posts()) : the_post(); ?>
    <?php the_content(); ?>
    <?php endwhile; ?>

    Just below the header, and while it does work, it makes the titles, comments, date and categories from the blog posts below to disappear. The excerpt and featured images are still there. The site isn’t live yet but if necessary I can set up a dummy site using that code.

    Here is the page template code on pastebin.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter cellbits

    (@cellbits)

    Found the problem. It’s because of the content I was trying to show above the posts, recent posts widgets inside a “shortcode any widget” inside a “wp-tabs” tabs 🙂

    Cleared up a bit working fine.

    Thread Starter cellbits

    (@cellbits)

    Sorry forgot, resolved.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Custom page template question’ is closed to new replies.