Title: how to modify this
Last modified: August 19, 2016

---

# how to modify this

 *  [anunturi](https://wordpress.org/support/users/anunturi/)
 * (@anunturi)
 * [16 years, 6 months ago](https://wordpress.org/support/topic/how-to-modify-this/)
 * version: 2.8.5
 * how to modify this code
 *     ```
       <div class="list">
       					<?php
       					$i = 1; 
   
       					if(!empty($_GET['sort']))
       					{
       					$orderby=trim($_GET['sort']);
       					$order=trim($_GET['order']);
       					$key=trim($_GET['key']);
   
       					// create the sort by injection
                                            	$posts = query_posts($query_string . '&orderby='.$orderby.'&meta_key='.$key.'&order='.$order.'');
       					}
   
       					if (have_posts()) : ?>
   
       					<?php while (have_posts()) : the_post(); ?>
   
       					<?php 
   
       					if ($i % 2 == 1) { $alt = " class=\"alt\""; } else { $alt = " class=\"no\""; } echo "<div" . $alt;
       					if (is_sticky()) { echo " id='sticky' "; } echo ">";
       					?>
       					<a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>">
       ```
   
 * to display the sticky posts but not at the top of front page.

Viewing 1 replies (of 1 total)

 *  Thread Starter [anunturi](https://wordpress.org/support/users/anunturi/)
 * (@anunturi)
 * [16 years, 6 months ago](https://wordpress.org/support/topic/how-to-modify-this/#post-1270191)
 * no one?

Viewing 1 replies (of 1 total)

The topic ‘how to modify this’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 1 participant
 * Last reply from: [anunturi](https://wordpress.org/support/users/anunturi/)
 * Last activity: [16 years, 6 months ago](https://wordpress.org/support/topic/how-to-modify-this/#post-1270191)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
