描述
Category Sticky Post allows you to mark a post to be displayed – or stuck – to the top of each archive page for the specified
category.
Category Sticky Post…
- Allows you to select which category in which to stick a post
- Will display the post on the top of the first page of the archive just like built-in sticky posts
- Will only allow you to stick a single post per category
- Displays whether or not a post is stuck in a category on the Post Edit dashboard
- Provides light styling that should look good in most themes
- Is available on each post editor page
- Is fully localized and ready for translation
For more information or to follow the project, check out the project page.
Development Information
Category Sticky Post was built with…
- The desire to perform the same functionality on my own blog
- WordPress Coding Standards
- Native WordPress API’s (specifically the Plugin API)
- CodeKit using LESS, JSLint, and jQuery
- Some advice from Konstantin Kovshenin on query optimization
- Respect for WordPress bloggers everywhere 🙂
屏幕截图
安装
Using The WordPress Dashboard
- Navigate to the ‘Add New’ Plugin Dashboard
- Select
category-sticky-post.zip
from your computer - 确认上传
- Activate the plugin on the WordPress Plugin Dashboard
Using FTP
- Extract
category-sticky-post.zip
to your computer - Upload the
category-sticky-post
directory to yourwp-content/plugins
directory - Activate the plugin on the WordPress Plugins dashboard
常见问题
- Installation Instructions
-
Using The WordPress Dashboard
- Navigate to the ‘Add New’ Plugin Dashboard
- Select
category-sticky-post.zip
from your computer - 确认上传
- Activate the plugin on the WordPress Plugin Dashboard
Using FTP
- Extract
category-sticky-post.zip
to your computer - Upload the
category-sticky-post
directory to yourwp-content/plugins
directory - Activate the plugin on the WordPress Plugins dashboard
评价
2024 年 7 月 20 日
Does exactly what I need. Thank you, Tom McFarlin!
2022 年 6 月 17 日
thanks for a solid plugin. 🙂
2022 年 2 月 11 日
thank you for great developer
2021 年 7 月 19 日
I really needed this, and WOW! it works like a charm with WP 5.7.2
2020 年 6 月 6 日
Once upon a time i applied this useful plugin. Now the plugin search did not show it on my new wordpress site. Found it, and installed other way. And still works.
Thank you!
2020 年 5 月 5 日
I am actively using this plugin on Wordpress 5.4 and it works perfectly.
贡献者及开发者
更新日志
2.10.2
- Change plugin authorship.
2.10.1
- Fix to plugin ownership name.
2.10.0
- Changing plugin ownership.
2.9.0
- Adding Serbian language translation (props George Dragojevic)
2.8.0
- WordPress 4.3 Compatibility
- Updating author URLs
- Removing the
disabled
functionality that would prevent you from selecting the same
category a post originally had (props marc) - Removing some unused functions
- Cleaning up some of the PHP
2.7.0
- WordPress 4.2.1 compatibility
- Updating copyright dates
2.6.0
- WordPress 4.0 compatibility
- Checking the main query to avoid conflicts with other plugins that deal with the main query
2.4.0
- Verifying WordPress 3.9 compatibility
2.3.0
- Removing the ability to add the sticky post to Pages (this should not have been possible earlier)
- Verifying WordPress 3.8 compatibility
2.2.0
- Adding Spanish translations (props to Andrew Kurtis)
2.1.1
- Updating the plugin so that the
category-sticky
class is applied only on category archive pages (props http://davidpratten.com).
2.1.0
- Updating the plugin to support pages custom post types
- Moving the screenshots to the
/assets/
directory to make the download a bit smaller
2.0.0
- Resolving a bug that marked the category as ‘unstuck’ when updating a post
- Introduced a feature for disabling the category sticky border
- Improving the coding standards of the plugin be separating the class into its own file
- Improving the PHPDoc of the plugin
1.2.1
- Removing the custom.css line in the README file
1.2
- Now posts that belong to multiple categories are properly styled when they are marked as sticky
- Removing some of the styles that were causing posts to look incorrect in certain themes
- Documenting all of the functions that exist in the source code
- Fully removing custom.css support
1.1.2
- Removing the custom.css support as it was causing issues with other plugin upgrades. Will be restored later, if requested.
1.1.1
- Improving support for adding custom.css so that the file is also managed properly during the plugin update process
- Updating localization files
1.1
- Updating function calls to use updated PHP conventions
- Adding a function to dynamically create a custom.css file if one doesn’t exist
- Verifying compatibility with WordPress 3.5
1.0
- Initial release