このプラグインは WordPress の最新3回のメジャーリリースに対してテストされていません。もうメンテナンスやサポートがされていないかもしれず、最新バージョンの WordPress で使用した場合は互換性の問題が発生する可能性があります。

Sticky Tax

説明

Sticky Tax enables posts to be made “sticky” within a specific category or tag. Ideal for cornerstone content or important stories, Sticky Tax lets blogs maintain chronological post archives, while keeping the most important content at the top of the list.

Why might I want this?

Let’s imagine Chris, a long-time blogger with lots of traffic coming to his site. He’s worked hard to categorize all of his content, but there are a few posts that he wants to make sure are the first thing people see when they hit a category landing page.

Using WordPress’ default behavior, these important pieces of content will eventually get lost behind pagination, just because they’re not the newest posts in the category.

With Sticky Tax, Chris can highlight the most important posts in a category, whether they were written last week or last year!

Usage

After installing and activating Sticky Tax, a new “Promote Post” meta box will appear on the post edit screen, with a list of terms for any public taxonomies registered on your site.

On the front-end

archive. Each sticky post even gets a .sticky-tax class added to it, enabling you to apply custom styling for your sticky content!

スクリーンショット

  • The Sticky Tax meta box on a WordPress post edit screen, showing a list of categories.
  • A post, made sticky via Sticky Tax, styled separately and at the top of the category archive page.

インストール

  1. Upload the sticky-tax directory into wp-content/plugins/
  2. Activate the plugin through the “Plugins” menu in WordPress

FAQ

Installation Instructions
  1. Upload the sticky-tax directory into wp-content/plugins/
  2. Activate the plugin through the “Plugins” menu in WordPress
Can I use Sticky Tax for other post types and/or taxonomies

Absolutely! Sticky Tax includes a number of filters that make customizing Sticky Tax a snap; for full details, please visit the plugin’s README on GitHub.

Can I style sticky posts separately from regular, non-sticky posts?

When a post is appearing at the front an archive thanks to Sticky Tax, the sticky-tax class will be applied to the post via the post_class filter. As long as your theme is using the <?php post_class(); ?> function in the loop, you should be able to target sticky posts in your CSS using the .sticky-tax selector.

評価

2017年11月23日
Just what I was looking for, a nice and easy plugin. Saved my day, hope that it will soon be used by many others.
1件のレビューをすべて表示

貢献者と開発者

Sticky Tax はオープンソースソフトウェアです。以下の人々がこのプラグインに貢献しています。

貢献者

“Sticky Tax” をあなたの言語に翻訳しましょう。

開発に興味がありますか ?

コードを閲覧するか、SVN リポジトリをチェックするか、開発ログRSS で購読してみてください。

変更履歴

For a full list of changes, please see the Sticky Tax change log on GitHub.

1.0.0

  • Initial public release.