Question

i'm trying to separate categories/subcategories in author.php so they each have their own endpoint link.

It's very similar to this question BUT for the life of me I can't enable the plugin provided: How to set up sub-categories for author pages?

The solution provided was this: https://gist.github.com/705545

I've downloaded the file, it's instructions say "enable this plugin" ... but when i put it in wp-content/plugins folder it doesn't show up on the list. I've tried putting it in a folder, and just putting the .php file in plugins folder. But it doesn't show up on the list.

How can I enable this? or if you have any other ideas on how to achieve these results i'd greatly appreciate it.

Thank you!

Was it helpful?

Solution

Hi @Pwn:

Add the text "Plugin Name:* in front of the text "Author Endpoints Example." You may need to remove the leading asterisk ("*").

OTHER TIPS

That file doesn't have a plugin info header so WP doesn't recognize it as a plugin.

You need something like this:

/*
Plugin Name: Name Of The Plugin
Plugin URI: http://URI_Of_Page_Describing_Plugin_and_Updates
Description: A brief description of the Plugin.
Version: The Plugin's Version Number, e.g.: 1.0
Author: Name Of The Plugin Author
Author URI: http://URI_Of_The_Plugin_Author
License: A "Slug" license name e.g. GPL2
*/

see http://codex.wordpress.org/Writing_a_Plugin

Licensed under: CC-BY-SA with attribution
Not affiliated with wordpress.stackexchange
scroll top