Beskrivelse
Sticky posts for WordPress, improved.
This plugin addresses the following issues and limitations found in the core’s implementation of sticky posts:
- Only the core
posttype supports this feature. - Sticky posts are added in front of your homepage’s results, yielding more posts than the configured per-page setting.
- Sticky posts reappear as you navigate further into the archive.
- Sticky posts are prepended to your results when querying specific posts with
post__in. - Difficult to include sticky posts in custom queries.
Some of these issues cause strange behaviour (like when using the REST API) and complicate the creation of custom homepage layouts.
At one point we decided to stop fighting the core and partially reimplemented the feature using custom post fields and meta queries, giving you:
- Sticky posts for all non-hierarchical post types.
- Post stickiness on post type and taxonomy archives.
- Respect for your configured per-page setting, with stickies spilling over onto the next page.
- Duplicates filtered from your archive pages.
- The ability to sort by stickiness on virtually any
WP_Querylookup. - Support for the
is_sticky()function. - A predictable WordPress REST API experience.
- A slight SQL query overhead (sorry!)
Post Glue will continue to save post IDs to the sticky_posts option, meaning you’ll retain some core functionality even if you decide to stop using the plugin.
Please follow and contribute to Post Glue’s development on Github.
Installasjon
Using [Composer](https://getcomposer.org)
- Install the plugin package using
composer require logoscon/post-glue.
Using the WordPress Dashboard
- Navigate to the ‘Add New’ in the plugins dashboard
- Search for ‘post glue’
- Click ‘Install Now’
- Activate the plugin on the Plugin dashboard
Uploading in WordPress Dashboard
- Navigate to the ‘Add New’ in the plugins dashboard
- Navigate to the ‘Upload’ area
- Select
post-glue.zipfrom your computer - Click ‘Install Now’
- Activate the plugin in the Plugin dashboard
Using FTP
- Download
post-glue.zip - Extract the
post-gluedirectory to your computer - Upload the
post-gluedirectory to the/wp-content/plugins/directory - Activate the plugin in the Plugin dashboard
Bidragsytere og utviklere
«Post Glue» er programvare med åpen kildekode. Følgende personer har bidratt til denne utvidelsen:
BidragsytereOversett “Post Glue” til ditt språk.
Interessert i utvikling?
Bla gjennom koden, sjekk ut SVN-repositoriet, eller abonner på utviklingsloggen med RSS.
Endringslogg
1.0.0
- Initial release.