WordPress.org

Ready to get started?Download WordPress

Plugin Directory

Ninja Page Categories and Tags

A simple plugin that allows the user to assign categories and tags to 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>

Requires: 3.1 or higher
Compatible up to: 3.4.2
Last Updated: 2012-8-16
Downloads: 32,289

Ratings

4 stars
4.5 out of 5 stars

Support

0 of 1 support threads in the last two months have been resolved.

Got something to say? Need help?

Compatibility

+
=
Not enough data

0 people say it works.
0 people say it's broken.

100,1,1
100,1,1 100,1,1
100,6,6 100,2,2
100,1,1
100,1,1
50,4,2 100,1,1
100,1,1
100,4,4
100,1,1 100,1,1 100,1,1 100,1,1
100,2,2 100,1,1 43,7,3
100,4,4
100,3,3 100,1,1 50,2,1 50,2,1
33,3,1
0,1,0
100,3,3
100,1,1
100,3,3
100,1,1
100,1,1
100,1,1
100,2,2
67,3,2