2017 © Pedro Peláez
 

wordpress-plugin terms-archive

A WordPress plugin for creating frontend terms archives.

image

ssnepenthe/terms-archive

A WordPress plugin for creating frontend terms archives.

  • Tuesday, October 24, 2017
  • by ssnepenthe
  • Repository
  • 1 Watchers
  • 1 Stars
  • 49 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 6 Open issues
  • 6 Versions
  • 0 % Grown

The README.md

terms-archive

This plugins creates archive pages for terms in public taxonomies., (*1)

Requirements

WordPress 4.7 or later, PHP 5.4 or later and Composer., (*2)

Installation

$ composer require ssnepenthe/terms-archive

OR, (*3)

$ cd /path/to/project/wp-content/plugins
$ git clone git@github.com:ssnepenthe/terms-archive.git
$ cd terms-archive
$ composer install

Usage

To start, you need to add theme support for any taxonomy you wish to add an archive page for. Any of the following are valid ways to do so:, (*4)

add_theme_support( 'ta-terms-archive' ); // Adds support for all public taxonomies.
add_theme_support( 'ta-terms-archive', 'category' ); // Adds support for the category taxonomy.
add_theme_support( 'ta-terms-archive', [ 'category', 'post_tag' ] ); // Adds support for categories and tags.

Additionally, you need to create at least one of the following template files:, (*5)

  • ta-terms-archive-{$taxonomy}.php
  • ta-terms-archive.php

Where $taxonomy is the string given as the first param to register_taxonomy()., (*6)

A number of functions are available to aid in theme development and can be found in inc/functions.php. They should feel very familiar if you have any experience developing WordPress themes., (*7)

Check examples/tf-child/ for an example implementation in the form of a twentyfifteen child theme., (*8)

Once you have completed the above and activated the plugin, you will be able to view lists of all terms which have associated posts and are in a public taxonomy from the frontend., (*9)

You can find these archive pages at {home url}/{wp rewrite front}/{tax rewrite slug}., (*10)

For example, if your site lives at https://example.com and your permalink structure is set to /blog/%postname%/, you will be able to access categories at https://example.com/blog/category/., (*11)

If you want to disable archive pages for specific taxonomies, you can do so by visiting Settings > Terms Archive and selecting the taxonomies you wish to disable., (*12)

The Versions

24/10 2017

dev-master

9999999-dev https://github.com/ssnepenthe/terms-archive

A WordPress plugin for creating frontend terms archives.

  Sources   Download

GPL-2.0

The Requires

 

The Development Requires

24/10 2017

dev-parent-in-term-class

dev-parent-in-term-class https://github.com/ssnepenthe/terms-archive

A WordPress plugin for creating frontend terms archives.

  Sources   Download

GPL-2.0

The Requires

 

The Development Requires

24/10 2017

dev-uninstall

dev-uninstall https://github.com/ssnepenthe/terms-archive

A WordPress plugin for creating frontend terms archives.

  Sources   Download

GPL-2.0

The Requires

 

The Development Requires

21/09 2017

dev-prefix-to-namespace

dev-prefix-to-namespace https://github.com/ssnepenthe/terms-archive

A WordPress plugin for creating frontend terms archives.

  Sources   Download

GPL-2.0

The Requires

 

The Development Requires