Skip to content

Wordpress Plugin that suggests post tags based off user-provided CSV

Notifications You must be signed in to change notification settings

psorensen/tagger

Repository files navigation

Tagger

Contributors: psorensen
Tags: tags, wp-cli
Requires at least: 4.0
Tested up to: 4.7.3
Stable tag: 0.1.0
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

Build Status

This plugin provides a WP-CLI command to scan posts in a Wordpress installation and suggest terms based on a user-provided CSV file.

Gif of Tagger plugin at work

Installation

  1. Upload the tagger directory to the /wp-content/plugins/ directory
  2. Activate the plugin through the 'Plugins' menu in WordPress or via wp-cli: wp plugin activate tagger

Usage

  1. Create a CSV file matching the following format:

    term tags
    term name or slug 1 list, of, applicable, terms or phrases
    term name or slug 2 list, of, applicable, terms or phrases
  2. Using WP-CLI (in the same directory as the CSV file,) enter the following command:

    wp tagger tag_posts your_filename.csv

  3. The plugin will scan the site's posts and output a CSV file of post IDs with applicable terms at /wp-content/uploads/tagger_results/.

The following optional arguments are accepted:

  • --post_type: comma-seperated list of post_types to scan. Defaults to post.
  • --threshold: minimum number of collective occurences of the provided terms per tag. Defaults to 2.

example: wp tagger tag_posts tags.csv --post_type=post,product --threshold=7

Changelog

0.1.0

  • Initial Release

Roadmap

This project currently exists as a tool to merely analyze posts and return a report. The following features are planned to be provided:

  • Admin interface for submitting CSV files and downloading report
  • Ability to confirm report and tag posts accordingly
  • Content fields weighting (e.g. title*3)

About

Wordpress Plugin that suggests post tags based off user-provided CSV

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published