Ninja Pages


This plugin will enable the categories and tags boxes on the edit page screen. You can assign these to pages just as you would to a post.

With version 1.2 we’ve added a very simple options page where you can choose if you would like to add categories, tags or both to your pages as well as options to have your pages show up in archive pages, add excerpts to pages, adjust excerpt length, and the ability to display child pages on parent pages. You can also add child pages on a per page basis with the [ninja_child_pages] shortcode and easily display categories or tags in your page templates with our ninja_pages_display_terms function.


Note This plugin requires at least version 3.0 of WordPress.

  1. Upload the plugin folder (i.e. ninja_page_cats_tags) to the /wp-content/plugins/ directory of your WordPress installation.
  2. Activate the plugin through the ‘Plugins’ menu in WordPress.
  3. 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.

<div id="ninja-children-wrap">

    <div class="ninja-child-wrap">
            <div class="ninja-child-thumbnail">
                CHILD THUMBNAIL
        <h3 class="ninja-child-title"><a href="">CHILD PAGE TITLE</a></h3>
        <div class="ninja-child-entry">



Tags don’t show on pages in WP 4.7.3

The Category and Tags boxes get included in the Edit Page but when the page is viewed, no tags show. Are the tags supposed to show automatically at the bottom of the page or, does the template for pages need to be modified to include a Tags / Category area? No information about how to get the tags to show up on the page in the instructions, if that is the case.

A fabulous plugin

This plugin disappeared from the WP Plugins page ages ago but I kept using it by uploading any old copy to each website. I love it. It kept working but I held my breath wondering when it would crash my site. I’m very happy to see it updated and tested with new WP versions.

Read all 10 reviews

Contributors & Developers

“Ninja Pages” is open source software. The following people have contributed to this plugin.


Translate “Ninja Pages” into your language.

Interested in development?

Browse the code, check out the SVN repository, or subscribe to the development log by RSS.


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.


  • 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.


  • Fixed an improper call to plugin directory.


  • 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.


  • Fixed links in child pagess list
  • Added check for theme support of post-thumbnails and add support if not found.


  • Various bug fixes and improved logic.


  • Added an options page and some new functions, shortcodes, etc.


  • Added code so that the pages categorized or tagged will show up in archives.


  • First version of Ninja Page Categories and Tags released.