WordPress.org

Support

Support » Installation » loop-entry.php how to use it on html pages?

loop-entry.php how to use it on html pages?

  • sarahsnhan@gmail.com

    @sarahsnhangmailcom

    The theme I installed has a loop-entry.php and it has all the codes, but I don’t know how to use it when I create a page. What to put in order to use it?

    It’s not option for template..

    How should I use it when creating a page?

    The following is the code I have:

    <?php while (have_posts()) : the_post(); ?>
    <?php if(has_post_thumbnail() ) { ?>
    <div class="loop-entry">
            <div class="loop-entry-thumbnail">
                <a>" title="<?php the_title(); ?>"><?php the_post_thumbnail('post-thumb'); ?></a>
            </div>
      	<div class="loop-entry-details">
        	<h2><a>" title="<?php the_title(); ?>"><?php the_title(); ?></a></h2>
        	<?php  echo excerpt('15'); ?>
            <div class="loop-entry-cat">
           		<?php _e('Posted In', 'pronto'); ?>: <?php the_category(' '); ?>
            </div>
        </div>
        <!-- END loop-entry-details -->
    </div><!-- END entry -->
    
    <?php } ?>
    <?php endwhile; ?>
Viewing 1 replies (of 1 total)
  • Are you trying to create a new template? Creating actual content pages is done from the backend. You shouldn’t need to worry about what the PHP looks like.

Viewing 1 replies (of 1 total)
  • The topic ‘loop-entry.php how to use it on html pages?’ is closed to new replies.