Title: samsonwiklund's Replies | WordPress.org

---

# samsonwiklund

  [  ](https://wordpress.org/support/users/samsonwiklund/)

 *   [Profile](https://wordpress.org/support/users/samsonwiklund/)
 *   [Topics Started](https://wordpress.org/support/users/samsonwiklund/topics/)
 *   [Replies Created](https://wordpress.org/support/users/samsonwiklund/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/samsonwiklund/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/samsonwiklund/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/samsonwiklund/engagements/)
 *   [Favorites](https://wordpress.org/support/users/samsonwiklund/favorites/)

 Search replies:

## Forum Replies Created

Viewing 5 replies - 1 through 5 (of 5 total)

 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Want to make a post sticky, but only when a specific cat is being viewed](https://wordpress.org/support/topic/want-to-make-a-post-sticky-but-only-when-a-specific-cat-is-being-viewed/)
 *  Thread Starter [samsonwiklund](https://wordpress.org/support/users/samsonwiklund/)
 * (@samsonwiklund)
 * [16 years, 10 months ago](https://wordpress.org/support/topic/want-to-make-a-post-sticky-but-only-when-a-specific-cat-is-being-viewed/#post-1138210)
 * Is there anyway I could hardcode the category-variable in the code so the url
   could be:
 * [http://www.url.com/whatever.php](http://www.url.com/whatever.php)
 * instead of
 * [http://www.url.com/whatever.php?cat=222](http://www.url.com/whatever.php?cat=222)
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Want to make a post sticky, but only when a specific cat is being viewed](https://wordpress.org/support/topic/want-to-make-a-post-sticky-but-only-when-a-specific-cat-is-being-viewed/)
 *  Thread Starter [samsonwiklund](https://wordpress.org/support/users/samsonwiklund/)
 * (@samsonwiklund)
 * [16 years, 10 months ago](https://wordpress.org/support/topic/want-to-make-a-post-sticky-but-only-when-a-specific-cat-is-being-viewed/#post-1138157)
 * i can’t seem to edit my post but:
 * > The sticky I want is only for post
 * should read:
 * The sticky I want is only for **one** post.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Want to make a post sticky, but only when a specific cat is being viewed](https://wordpress.org/support/topic/want-to-make-a-post-sticky-but-only-when-a-specific-cat-is-being-viewed/)
 *  Thread Starter [samsonwiklund](https://wordpress.org/support/users/samsonwiklund/)
 * (@samsonwiklund)
 * [16 years, 10 months ago](https://wordpress.org/support/topic/want-to-make-a-post-sticky-but-only-when-a-specific-cat-is-being-viewed/#post-1138145)
 * Can I add somekind of if-statement that if the user is viewing a specific category
   I can get a sticky on top of it?
 * I don’t want the sticky to show up as a sticky on the main-site though, only 
   when the user is viewing a specific category.
 * The sticky I want is only for post. Can I “hardcode” it through use of permalinks
   within some kind of if-statement which only shows when for instance “cat=222”?
 * I don’t have a “category.php” page but this is my page template:
 *     ```
       <?php get_header(); ?>
   
       		<!-- Content -->
       		<div id="content">
   
       			<?php if (have_posts()) : ?>
       			<?php while (have_posts()) : the_post(); ?>
       			<!-- Post -->
       			<div class="post" id="post-<?php the_ID(); ?>">
       				<div class="post-title">
       					<h2><?php the_title(); ?></h2>
       				</div>
       				<div class="post-entry">
       					<?php the_content('Read <span>more...</span>'); ?>
       					<?php edit_post_link('Edit this entry.', '<p>', '</p>'); ?>
       				</div>
       			</div>
       			<!-- /Post -->
       			<?php endwhile; ?>
       			<?php else : ?>
       			<!-- Post -->
       			<div class="post">
       				<div class="post-title">
       					<h2>Finns inte</h2>
       				</div>
       				<div class="post-entry">
       					<p>Sorry, men du letar efter något som inte finns.</p>
       				</div>
       			</div>
       			<!-- /Post -->
       			<?php endif; ?>
   
       			<div class="clear"></div>
   
       		</div>
       		<!-- /Content -->
   
       <?php get_sidebar(); ?>
       <?php get_footer(); ?>
       ```
   
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Help! Blog is broken](https://wordpress.org/support/topic/help-blog-is-broken/)
 *  [samsonwiklund](https://wordpress.org/support/users/samsonwiklund/)
 * (@samsonwiklund)
 * [16 years, 10 months ago](https://wordpress.org/support/topic/help-blog-is-broken/#post-1138142)
 * Just reload the original files for the theme you are using and you should be 
   back.
 * Pro-tip: A more descriptive title on your post here will get you more answers.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [My RSS won’t change when I update old posts](https://wordpress.org/support/topic/my-rss-wont-change-when-i-update-old-posts/)
 *  Thread Starter [samsonwiklund](https://wordpress.org/support/users/samsonwiklund/)
 * (@samsonwiklund)
 * [16 years, 10 months ago](https://wordpress.org/support/topic/my-rss-wont-change-when-i-update-old-posts/#post-1137319)
 * I figured it out.
 * The old files were still in the “enclosure” custom field.
 * I feel stupid. =(
 * Thank you henkholland for the tip though. It helped to solve another smaller 
   issue I had.

Viewing 5 replies - 1 through 5 (of 5 total)