Title: Help with stick posts
Last modified: August 21, 2016

---

# Help with stick posts

 *  [billyf](https://wordpress.org/support/users/billyf/)
 * (@billyf)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/help-with-stick-posts/)
 * Please Help!!1…How can i change category for stick posts…
 * If u dont understain what i mean watch : [http://www.nerashti.com](http://www.nerashti.com),
   in front page .
    here’s the code…
 *     ```
       <?php 
   
       				$catid = get_query_var('cat');
         $idObj = get_category_by_slug('sport');
       				$sticky =  get_category_by_slug('sport');
       				$featured_args = array(
       					'post__in' => $sticky,
       					'category__in' => $catid,
       					'posts_per_page' => 1,
       					'ignore_sticky_posts' => 1
       				);
       				$featured = new WP_Query( $featured_args );
       				// Proceed only if sticky posts exist.
       				if ( $featured->have_posts() ) :
   
       				while ( $featured->have_posts() ) : $featured->the_post();
       			?>
       ```
   

The topic ‘Help with stick posts’ is closed to new replies.

## Tags

 * [Sticky posts](https://wordpress.org/support/topic-tag/sticky-posts/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 0 replies
 * 1 participant
 * Last reply from: [billyf](https://wordpress.org/support/users/billyf/)
 * Last activity: [12 years, 11 months ago](https://wordpress.org/support/topic/help-with-stick-posts/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
