Ninja Pages

Description

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.

FAQ

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>

Reviews

Tags don't show on pages in WP 4.7.3

sleeplessinDC

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

sharonvillines

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

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.

Contributors & Developers

This is open source software. The following people have contributed to this plugin.

Contributors

Browse the code