You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

2012-01-07-template-sticky.md 1.0KB

1234567891011121314151617181920212223
  1. ---
  2. author: adamchlan
  3. categories:
  4. - Uncategorized
  5. date: 2012-01-07T14:07:21Z
  6. original_post_id:
  7. - "1241"
  8. tags:
  9. - sticky
  10. - template
  11. title: 'Template: Sticky'
  12. parent: "Variables"
  13. url: /2012/01/07/template-sticky/
  14. ---
  15. This is a sticky post.
  16. There are a few things to verify:
  17. * The sticky post should be distinctly recognizable in some way in comparison to normal posts. You can style the `.sticky` class if you are using the <a title="WordPress Codex post_class() Function" href="http://codex.wordpress.org/Function_Reference/post_class" target="_blank">post_class()</a> function to generate your post classes, which is a best practice.
  18. * They should show at the very top of the blog index page, even though they could be several posts back chronologically.
  19. * They should still show up again in their chronologically correct postion in time, but without the sticky indicator.
  20. * If you have a plugin or widget that lists popular posts or comments, make sure that this sticky post is not always at the top of those lists unless it really is popular.