Changelog
-
Version 1.50 (01-06-2009)
- FIXED: Ensure That Post Is Not A Revision
- FIXED: Uses $_SERVER['PHP_SELF'] With plugin_basename(__FILE__) Instead Of Just $_SERVER['REQUEST_URI']
-
Version 1.40 (12-12-2008)
- NEW: Works For WordPress 2.7 Only
- FIXED: Replaced is_sticky() to is_stickied()
-
Version 1.31 (16-07-2008)
- NEW: Works For WordPress 2.6
- NEW: Added in stick_post And announcement_post CSS class. Credits To imvain2
- FIXED: Renamed 'Sticky' Tab To 'WP-Sticky' Tab Because Of Translation Issues.
-
Version 1.30 (01-06-2008)
- NEW: Works For WordPress 2.5 Only
- NEW: Uses /wp-sticky/ Folder Instead Of /sticky/
- NEW: Uses wp-sticky.php Instead Of sticky.php
- FIXED: Manage Pages Will Be In Reverse Order If WP-Sticky Is Activated
-
Version 1.10 (01-10-2007)
- NEW: Added announcement_banner(); For Those Not Using the_date();
- NEW: Ability To Uninstall WP-Sticky
- NEW: Moved Sticky Options From sticky.php To sticky-options.php
-
Version 1.00 (01-06-2007)
» Installation Instructions
-
Open wp-content/plugins Folder
-
Put:
Folder: wp-sticky
-
Activate WP-Sticky Plugin
-
Refer To Usage For Further Instructions
» Upgrade Instructions
From v1.0x To v1.50
-
Deactivate WP-Sticky Plugin
-
Open wp-content/plugins Folder
-
Put/Overwrite:
Folder: wp-sticky
-
Delete this folder if exists:
Folder: sticky
-
Activate WP-Sticky Plugin
-
Refer To Usage For Further Instructions
» Usage Instructions
General Usage
- You can configure WP-Sticky options in 'WP-Admin -> Settings -> WP-Sticky'.
- You can find the post's 'Sticky' Option under 'Post Sticky Status' Options in the 'Write/Edit Post Screen'.
- Want to know what is the difference between Announcement Posts and Sticky Posts? Check it out here.
Displaying WP-Sticky (Inside The WP Loop)
-
To Display The Post Sticky Status
-
Use:
<?php post_sticky_status(); ?>
Default: post_sticky_status('','');
The first value: The text to appear before displaying the post's sticky status.
The second value: The text to appear after displaying the post's sticky status.
Note: The post's sticky status is either Sticky or Announcement.
-
To Display Announcement Banner
-
By default, the Announcement Banner will be displayed if your theme is using the_date(); within its templates. But if your theme is not using the_date(); and you want to display the Announcement Banner
Use:
<?php announcement_banner(); ?>
Checking Post Sticky Status
-
To Check If A Post Is Announcement
-
Use:
<?php
if(is_announcement()):
// If post is an Announcement
else:
// If post is NOT an Announcement
endif;
?>
-
To Check If A Post Is Sticky
-
Use:
<?php
if(is_stickied()):
// If post is Sticky
else:
// If post is NOT Sticky
endif;
?>
Styling The Content Of Sticky/Announcement Post
- You can style the content of Sticky and Announcement posts by using the CSS class sticky_post and announcement_post respectively.