Title: Edit my index.php
Last modified: August 30, 2016

---

# Edit my index.php

 *  [gianpy81](https://wordpress.org/support/users/gianpy81/)
 * (@gianpy81)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/edit-my-indexphp/)
 * Hello , I would change my index.php with the functions of your plugin , that 
   show in chronological order the articles around the network . Can be done? Thank
   you.
 *     ```
       <div class="block archive">
   
       <h3>
       <?php _e('', 'Avenue'); ?>
       <span class="arrows"></span>
       </h3>
   
       <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
       <div id="post-<?php the_ID(); ?>" <?php post_class('block-item-big'); ?>>
       <?php
       if(has_post_format('video') || has_post_format('audio') || has_post_format('gallery')) {
       $icon = '<span class="' . get_post_format($post->ID) . '-icon"></span>';
       } else {
       $icon = '';
       }
       ?>
       <?php if(has_post_thumbnail()): ?>
       <?php $image = wp_get_attachment_image_src(get_post_thumbnail_id($post->ID), 'widget-image'); ?>
       <div class="block-image"><a href='<?php the_permalink(); ?>' title='<?php the_title(); ?>'><img src="<?php echo $image[0]; ?>" alt="<?php the_title(); ?>" width='290' height='160' /></a><?php echo $icon; ?></div>
       <?php else: ?>
       <div class="block-image"><a href='<?php the_permalink(); ?>' title='<?php the_title(); ?>'><img src="<?php bloginfo('template_directory'); ?>/timthumb.php?src=<?php bloginfo('template_directory'); ?>/images/thumbnail.png&w=290&h=160" alt="<?php the_title(); ?>" width='290' height='160' /></a><?php echo $icon; ?></div>
       <?php endif; ?>
       <!-- leggi la categoria -->
       <div class="category-home">
       <?php
       foreach((get_the_category()) as $category) {
   
       echo '<a href="' . get_category_link( $category->term_id ) . '" title="' . sprintf( __( "Tutti gli articoli in %s" ), $category->name ) . '" ' . '>' . $category->name.'</a> ';
   
       }
       ?>
       </div>
       <!-- end lettura categoria -->
       <h2><a href='<?php the_permalink(); ?>' title='<?php the_title(); ?>'><?php the_title(); ?></a></h2>
       <span class="block-meta">
       <!-- <span class="heading-author"><?php //the_author(); ?></span> -->
       <span class="heading-date"><?php the_time('F j, Y'); ?></span>
       <span class="heading-comments"><?php comments_popup_link('0','1','%'); ?></span>
       </span>
       <!-- NO read more -->
       <p><?php echo string_limit_words(get_the_excerpt(), 34); ?></p><!--<a href='<?php //the_permalink(); ?>' title='<?php //the_title(); ?>' class="readmore"><?php //_e('Read More', 'Avenue'); ?> <span class="block-arrows">»</span></a> -->
       <!-- end NO read more -->						</div>
       <?php endwhile; endif; ?>
   
       <?php kriesi_pagination($pages = '', $range = 2); ?>
       </div>
   
       <div class='block full' style='padding-top: 20px;'>
       <?php if (!function_exists('dynamic_sidebar') || !dynamic_sidebar('Homepage (Blog Style)')): ?>
       <?php endif; ?>
       </div>
       ```
   

The topic ‘Edit my index.php’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/network-latest-posts_61c601.svg)
 * [Network Latest Posts](https://wordpress.org/plugins/network-latest-posts/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/network-latest-posts/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/network-latest-posts/)
 * [Active Topics](https://wordpress.org/support/plugin/network-latest-posts/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/network-latest-posts/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/network-latest-posts/reviews/)

## Tags

 * [index](https://wordpress.org/support/topic-tag/index/)

 * 0 replies
 * 1 participant
 * Last reply from: [gianpy81](https://wordpress.org/support/users/gianpy81/)
 * Last activity: [10 years, 7 months ago](https://wordpress.org/support/topic/edit-my-indexphp/)
 * Status: not resolved