• Resolved emmerdesign

    (@emmerdesign)


    Hello,

    I have made a custom template with a static front page. I fixed that by creating a new .php file and call it Home.php. I made a second .php file and call that blog.php. In wordpress I made a new page with the name blog and under the page-atrribute I choose the blog template.

    I have this code in my blog.php but I don’t see my created blog items. I think I am missing some code but I can’t figure out what:

    <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
    <div class=”thePost”>
    <h2><a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></h2>
    <div class="meta"><?php the_date() ?><span class="cat">Categorie: <?php the_category(',') ?></span></div>
    <div class=”postContent”>
    <p><?php the_excerpt(); ?></p>
    <a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>">Lees het volledige artikel!!!!!!</a>
    </div>
    </div>
    <?php endwhile; else: ?>
    <p><?php _e(''); ?></p>
    <?php endif; ?>
    </div>

    Hope someone can help me.

    Thanks a lot!

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Blog custom page’ is closed to new replies.