Este plugin não foi testado com as 3 atualizações principais mais recentes do WordPress. Pode ser que não tenha mais manutenção ou suporte e talvez tenha problemas de compatibilidade quando usado com versões mais recentes do WordPress.

Sticky Tax

Descrição

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!

Imagens de tela

  • 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.

Instalação

  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.

Avaliações

23 de novembro de 2017
Just what I was looking for, a nice and easy plugin. Saved my day, hope that it will soon be used by many others.
Leia 1 avaliação

Colaboradores e desenvolvedores

“Sticky Tax” é um software com código aberto. As seguintes pessoas contribuíram para este plugin.

Colaboradores

Registro de alterações

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

1.0.0

  • Initial public release.