Contributors: neverything
Tags: multisite, wpmu, taxonomies
Requires at least: 4.5
Tested up to: 5.4.1
Stable tag: 0.22.3
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Adds global tags for posts and comments in a multisite installation. Uses the Multisite Taxonomies plugin to create taxonomies.
This plugin relies on the Multisite Taxonomies plugin to perform network wide queries. Adding and managing taxonomies in the network admin.
Spaces Global Tags creates two new multisite taxonomies. Both taxonomies are assigned to the post
post-type. The first one global_comment_tags
is storing #tags
made in comments on the post. The second one global_post_tags
allows post authors to create #tags
while writing posts.
When using the frontend editor provided by Spaces it shows an autocompletion for existing tags and allows you to create new ones on the fly.
Other notable features:
- Global Tag archive pages
https://example.com/multitaxo/<taxonomy_name>/<tag_slug>
- Global Taxonomy archive pages
https://example.com/multitaxo/<taxonomy_name>/
- Allow tagging in the P2 style aka adding
#foo
in thepost_content
andcomment_text
.
Clone it, love it, hate it.
- Install the Multisite Taxonomies and network activate it.
- Install this plugin and network activate it.
- Find the taxonomies in the network admin.
No. But it does disable them on the post
object type.
No, not yet. It will be integrated with the Spaces search, but for now you will have to click on the tags to reach the archive pages.
Please check if the bug is already mentioned on the Github repository or create a new issue.
For feature request, please head over to the Github repository and create a feature request or a pull request with your proposed feature.
We can't guarantee to build or merge your feature request, so consider creating a companion plugin using the filters provided by our plugin.
Certainly, we provide a bunch of useful hooks and so does the Multisite Taxonomies plugin.
- Filter
spaces_global_tags_archive_template_path
, change the path to the archive page template, default:plugin_dir_path( __DIR__ ) . templates/template.php
. - Action
spaces_global_tags_below_archive_title
, change what is displayed below the archive title, defaults to related tags of the same taxonomy. - Filter
spaces_global_tags_post_types
, change the post types using the global taxonomies, defaults to[ 'post' ]
. - Filter
spaces_global_tags_user_roles
, change the roles allowed to create and add tags, defaults to[ 'administrator', 'editor', 'author' ]
. - Filter
spaces_global_tags_user_capabilities
, change the capabilities granted to the mentioned roles, defaults to[ 'manage_multisite_terms', 'edit_multisite_terms', 'assign_multisite_terms' ]
. - Filter
spaces_global_tags_archive_path
, change the default path for the archive pages. In the context of spaces it's/home/
otherwise the main network site. - Filter
spaces_global_tags_found_tags
, allows you to change the found tags in a text string (post_content
,comment_text
), defaults to array of found tags. - Filter
spaces_global_tags_tag_link
, allows you to change the link destination for the tag archive page. - Filter
spaces_global_tags_number_of_related_tags
, allows you to change the number of other tags shown in the same taxonomy, default is30
. - Filter
spaces_global_tags_show_link_to_all_tags
, whether we show a link to all tags in a taxonomy on a term archive, default istrue
. - Filter
spaces_global_tags_term_cloud_args
allows changing of the args passed to the tag cloud widget.
- Code styling and typos in comments.
- Fix permalinks for global archive page in Spaces installs, fixes #36
- Spring cleaning: Replace hard-coded strings with existing constants.
- Remove invalid dependency check on plugin activation.
- Add dependency check for plugin activation and load, fixes #34
- Disable comment tags for now, will add them again later when comment editor is more mature.
- Add proper plugin description to plugin header.
- Format changelog
- Add checkbox to widget form, to display link to taxonomy archive.
- Display link to taxonomy archive, if checkbox is checked.
- First version of the global tag cloud widget.
- Show link to all tags in a taxonomy on the term archive page.
- Display posts per term on term archive page.
- Display posts per term on taxonomy archive page.
- Show tag list in a more condensed way.
- Remove shortcodes from global tag archive excerpts.
- Only show a max. of 30 other tags on a tag term archive.
- Updated readme with more useful information
- Fixed a few typos in the code
- Updated inline documentation
- Added a filter for roles to be allowed managing global tags.
- Check and add capabilities to user roles so they can add and create global tags, fixes #20
- Added a filter for post types with multisite taxonomies.
- Implemented a check for post type when finding tags in content, fixes #18
- Removed a CSS class on the global tag archive template for production.
- Added REST API endpoints for global comment and post tags.
- Added Tribute JS by ZURB to allow auto completion for tags.
- Implemented auto completion for CKEditor and comment forms.
- Changed approach for archive pages for now, using parts of https://github.com/HarvardChanSchool/multisite-taxonomies-frontend
- Added first spaces specific fixes for urls using spaces_options.
- Fixed a bug to link to the proper multisite term archive page.
- First pass at filling the multisite term archive pages.
- Changed reusable strings to constants.
- Added GPL in plugin header.
- Fixed a bug that prevented comment and post tags to be linked properly.
- Added implementation for global post tags to work in the same fashion as comment tags.
- Added README.md
- Added translation file.
- Add composer.json support.
- Implement PSR4 autoloader for classes.
- Add method to filter displayed comment/content with links to the tag archive pages.
- Implement logic for parsing and settings terms for posts in comments.
- Implement abstract class Hashtag_Parser.
- Setting up Post_Tags and Comment_Tags classes.
- Remove
post_tag
frompost
object. - Add
global_post_tag
topost
object. - Add
global_comment_tag
topost
object.
- Started re-build on Multisite Taxonomies plugin.
- Moved uninstall flush_rewrite_rules to deactivation hook.
- Implemented an uninstall.php file with a class to truly uninstall the plugin.
- Added custom rewrite rules for global tag archive pages.
- Initial version, very limited and only as a playground.