Useful shortcodes to display a post or page content or a list of posts.
Category Pages & Posts Shortcodes is a complete rewrite of the "Category Page" plugin. It offers useful shortcodes to display a post or page content, or a list of posts. Also it allow exclusive mutual bind between a Category and a Page, in order to display the page content as "header" of category archives.
You can safely use shortcodes inside a post or a page, our you can embed them in your theme using the do_shortcode WordPress function like that:
<?php do_shortcode('[showsingle pageid="<id_of_page>"]'); ?>
NOTE: This plugin requires WordPress 3.4.x, and will break your current ~2.5 setup. It also won't be compatible with Category Page Extender anymore. On activation, it will clean every option set by the previous versions. Please test it offline first.
This shortcode will show a single post or page. The only required argument is either postid or pageid.
aptools-single-header)<div class="aptools-wrapper"></div>aptools-wrapper)This shortcode will show a list of posts from you. Required argument is catid.
aptools-list) <div class="aptools-wrapper"></div>aptools-wrapper)This shortcode works only on category archives templates: it will display on each category the linked page content.
You can set up the link either on the page edit admin area or in the category edit area.
Please note: a single page can be linked this way to a single category only.
If you need more flexible options you should take advantage of WordPress template hierarchy:
you can create a category-<category_name>.php file with a [showsingle] shortcode.
GPL2(C) 2008+ SWER Sviluppo siti internet Torino
Requires: 3.4.2 or higher
Compatible up to: 3.5.1
Last Updated: 2013-2-24
Downloads: 100,291
0 of 4 support threads in the last two months have been resolved.
Got something to say? Need help?