Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .phpcs.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
<!-- Exclude the Coverage output directory. -->
<exclude-pattern>/coverage/*</exclude-pattern>

<!-- Exclude minified Javascript files. -->
<exclude-pattern>*.min.js</exclude-pattern>
<!-- Exclude Javascript files. -->
<exclude-pattern>*.js</exclude-pattern>

<!-- Strip the filepaths down to the relevant bit. -->
<arg name="basepath" value="."/>
Expand Down
12 changes: 10 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ Fewer Tags helps WordPress sites avoid thin, low-value tag archives.

Instead of letting every tag create another archive URL, the plugin lets you set a minimum number of posts a tag needs before it is considered live on your site. Tags below that threshold are hidden from visitors and search engines, redirected to your homepage, and excluded from supported XML sitemaps.

As of version 2.0, Fewer Tags also lets you merge terms across taxonomies and create redirects when you merge or delete terms — all the functionality previously in Fewer Tags Pro is now included for free.

That means fewer useless tag pages, cleaner taxonomy archives, and less crawl waste.

## What it does
Expand All @@ -25,6 +27,12 @@ Fewer Tags lets you define the minimum number of posts a tag needs before it bec

The default threshold is 10 posts, and you can change it under **Settings → Reading**.

## Merging and redirects

- Merge any tag, category, or custom taxonomy term into another — even across taxonomies. All posts from the source term are moved to the target term, and a 301 redirect is created from the old term archive to the new one.
- When you delete a term, Fewer Tags prompts you to create a redirect to the homepage or any other URL.
- Redirects are created via the [Redirection plugin](https://wordpress.org/plugins/redirection/) or Yoast SEO Premium.

## Why use it?

Many WordPress sites accumulate lots of tags that only contain one or two posts. Those tag archives rarely help users, and they create extra URLs for search engines to crawl and index.
Expand All @@ -44,6 +52,7 @@ Fewer Tags gives you a simple way to keep useful tag archives while suppressing
2. Activate the plugin.
3. Go to **Settings → Reading**.
4. Choose how many posts a tag needs before it becomes live on your site.
5. For the merge and redirect-on-delete features, install and activate the [Redirection plugin](https://wordpress.org/plugins/redirection/) or Yoast SEO Premium.

## FAQ

Expand All @@ -61,10 +70,9 @@ Please use the Patchstack Vulnerability Disclosure Program to report security is

## Learn more

- Plugin home: https://progressplanner.com/plugins/fewer-tags/
- Research: https://fewertags.com/research/
- Free plugin walkthrough: https://www.youtube.com/watch?v=KItn1X1qMas
- Fewer Tags Pro: https://fewertags.com/
- Fewer Tags Pro video: https://www.youtube.com/watch?v=NkF3Y6iIoDk

## Development

Expand Down
11 changes: 7 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@
"phpcompatibility/phpcompatibility-wp": "*",
"php-parallel-lint/php-parallel-lint": "^1.3",
"yoast/wp-test-utils": "^1.2",
"phpstan/phpstan": "^1.10",
"szepeviktor/phpstan-wordpress": "^1.3",
"phpstan/extension-installer": "^1.3",
"phpcompatibility/php-compatibility": "dev-develop as 9.99.99"
"phpstan/phpstan": "^2.1",
"szepeviktor/phpstan-wordpress": "^2.0",
"phpstan/extension-installer": "^1.4",
"phpcompatibility/php-compatibility": "^9.3"
},
"scripts": {
"check-cs": [
Expand All @@ -44,6 +44,9 @@
"allow-plugins": {
"dealerdirect/phpcodesniffer-composer-installer": true,
"phpstan/extension-installer": true
},
"platform": {
"php": "7.4.33"
}
}
}
Loading
Loading