A simple plugin that allows the user to assign categories and tags to pages.
Author: | The WP Ninjas (profile at wordpress.org) |
WordPress version required: | 3.1 |
WordPress version tested: | 4.6 |
Plugin version: | 1.4.2 |
Added to WordPress repository: | 06-08-2010 |
Last updated: | 28-07-2016
Warning! This plugin has not been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.
|
Rating, %: | 92 |
Rated by: | 12 |
Plugin URI: | http://plugins.wpninjas.net/?p=72 |
Total downloads: | 52 750 |
Active installs: | 3 000+ |
Click to start download
|
FAQ
Installation Instructions
Note This plugin requires at least version 3.0 of WordPress.
- Upload the plugin folder (i.e. ninja_page_cats_tags) to the /wp-content/plugins/ directory of your WordPress installation.
- Activate the plugin through the ‘Plugins’ menu in WordPress.
- You can now add categories and tags to your pages.
How do I display the categories or tags that are attcahed to posts?
You can add this super simple function to your Page template:
if( function_exists( 'ninja_pages_display_terms' ) ) {
echo ninja_pages_display_terms( 'category', ',' );
}
You will obviously want to wrap them with opening and closing php tags. This function takes two parameters. The first is the taxonomy, in our case this will be either ‘category’ or ‘post_tag’. The second is a seperator. In the example above we use a comma.
How can I style my child page listing on parent pages?
Below is the basic markup for the child pages listing. Using basic CSS you can style these any way you like.
WRAPS ENTIRES LIST OF CHILDREN
<div id="ninja-children-wrap">
WRAPS EACH CHILD PAGE
<div class="ninja-child-wrap">
IF THERE IS A THUMBNAIL
<div class="ninja-child-thumbnail">
CHILD THUMBNAIL
</div>
END THUMBNAIL
<h3 class="ninja-child-title"><a href="">CHILD PAGE TITLE</a></h3>
<div class="ninja-child-entry">
CHILD PAGE EXCERPT
</div>
</div>
</div>
ChangeLog
1.4.2 (28 July 2016)
- Fixed an issue where Ninja Pages would throw an error when filtering posts table by category.
1.4.1 (3 May 2016)
- Removed an extra call for adding to the archives pages when the appropriate option was selected.
1.4 (3 May 2016)
- Fixed in issue where pages were not appearing in the categories or tags archives when the appropriate options were enabled.
1.3.3 (2 May 2016)
- Updating WordPress compatability version number along with cleaning up some old image files. Also updated the name if the plugin to be simply Ninja Pages.
1.3.2
- Fixed an issue where adding pages to category & tag archives query could cause conflicts with other plugins or themes or overwrite other queries. Thanks to Pippin Williamson for pointing it out.
1.3.1
- Fixed an improper call to plugin directory.
1.3
- Added an option to choose how many children pages show on parent pages when option enabled or using the shortcode.
- Added an option to choose whether to sort child pages by menu order or title and whether to do so in Ascending or Descending order.
1.2.2
- Fixed links in child pagess list
- Added check for theme support of post-thumbnails and add support if not found.
1.2.1
- Various bug fixes and improved logic.
1.2
- Added an options page and some new functions, shortcodes, etc.
1.1
- Added code so that the pages categorized or tagged will show up in archives.
1.0
- First version of Ninja Page Categories and Tags released.