WordPress.org

Ready to get started?Download WordPress

Forums

why in my pages is apearing my posts? (2 posts)

  1. tatika
    Member
    Posted 6 years ago #

  2. tatika
    Member
    Posted 6 years ago #

    this code cause this error

    <?php
    $posts = get_posts('numberposts=4');
    foreach($posts as $post) :
    setup_postdata($post);
    ?>
    <li>
    <a href="<?php the_permalink(); ?>" alt="Leia o post">
    <b><?php the_title(); ?></b>
    </a><br>
    <span><?php the_time('d/m') ?> | </span>
    <!--<img src="http://BALAODECOMETARIOS">--> <?php comments_number('0 ', '1', '%', 'comments-link', 'Comments are off for this post')?> comentários
    <br>
    </li>
    <?php endforeach; ?>

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.