Ez a bővítmény nem lett tesztelve a WordPress legutóbbi 3 fő kiadásával. Lehetséges, hogy már nincs karbantartva, frissítve és a használata gondot jelenthet a frissebb WordPress verziókkal.

There Can Be Only One

Leírás

This plugin ensures that there is only one sticky post published to the site. When a new sticky post is published, previous the ‘sticky’ flag is removed from any other posts, so they will no longer appear at the top of your page.

Important Notes

  • I adapted code initially found at http://craiget.com/one-sticky-post-in-wordpress/ Thanks to Craige for posting it! Also, Devin Price (http://wptheming.com/) was immensely helpful as I knocked out a couple of issues regarding scheduled sticky posts.
  • The first time you publish a sticky post after enabling this plugin, any and all other sticky posts will be changed to not-sticky. There is not a way to automatically reverse this decision, nor is their a log of which posts were changed.
  • This plugin has not been tested with versions of WordPress prior to 4.0.
  • Do not use this plugin if you are using another to manage per-category sticky posts. It has not been tested with that setup, and it will most likely mark all of those posts as non-sticky.

Telepítés

  1. Extract the single-sticky/ folder file to /wp-content/plugins/
  2. Activate the plugin at your blog’s Admin -> Plugins screen
  3. Publish a new post that is marked as being sticky.

GYIK

How does the plugin treat scheduled posts?

If you have a sticky post visible on the site and you schedule a new sticky post, the old one will stay sticky until the new one is published and visible on the site.

How does this work with plugins that set sticky posts per category?

Sorry, the short answer is „I don’t know”, as I haven’t tested it with any of those plugins. My expectation is that all of those sticky posts will be set to non-sticky the first time a new sticky post is published after this plugin is activated. I recommend you avoid this situation, but if you decide to try it, I’d love to hear the results.

Vélemények

Nincsenek értékelések erről a bővítményről.

Közreműködők és fejlesztők

“There Can Be Only One” egy nyílt forráskódú szoftver. A bővítményhez a következő személyek járultak hozzá:

Közreműködők

“There Can Be Only One” fordítása a saját nyelvünkre.

Érdekeltek vagyunk a fejlesztésben?

Browse the code, check out the SVN repository, or subscribe to the development log by RSS.

Változási napló

1.0

  • A quick fix that resolved an issue where posts that were made sticky after they were published weren’t caught, causing more than one post to be set to sticky. Thanks to Jeff Chandler for surfacing this issue.
  • I feel pretty good about the state of the plugin, so bumping it to a full 1.0 release

0.9

  • Initial public release.