• Resolved fubarness

    (@fubarness)


    Hello,

    I am starting to learn and configure my WordPress theme. Apparently, I’m quite new at this, so please bare with me.

    At the moment, I am trying to display a post using this code.
    * index.php *
    <?php
    get_header();
    ?>

    <?php if (have_posts()) : while (have_posts()) : the_post(); ?>

    <div class=”content”>
    <div class=”contentbox”>
    <h3>” rel=”bookmark”><?php the_title(); ?></h3>
    <div class=”border”></div>

    <?php endwhile; else: ?>
    <p><?php _e(‘Sorry, no posts matched your criteria.’); ?></p>
    <?php endif; ?>

    </div>
    <!– end content –>

    </div>
    <!– end contentbox –>

    <?php get_footer(); ?>

    It display like this in the page: https://gantdesigns.com/wordpress

    I hope someone is willing to assist me on this issue, thanks.

  • The topic ‘Display post’ is closed to new replies.