Descripción
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.
Instalación
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.
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>
Reseñas
Colaboradores y desarrolladores
"Ninja Pages" es un software de código abierto. Las siguientes personas han colaborado con este plugin.
ColaboradoresTraduce "Ninja Pages" a tu idioma.
¿Interesado en el desarrollo?
Revisa el código , echa un vistazo al repositorio SVN o suscríbete al registro de desarrollo por RSS.
Registro de cambios
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.