{"id":13102,"date":"2011-05-14T17:35:25","date_gmt":"2011-05-14T17:35:25","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/post-category-index-generator\/"},"modified":"2012-12-12T23:09:09","modified_gmt":"2012-12-12T23:09:09","slug":"post-category-index-generator","status":"closed","type":"plugin","link":"https:\/\/wordpress.org\/plugins\/post-category-index-generator\/","author":7790762,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"0.2.0","stable_tag":"trunk","tested":"3.4.2","requires":"3.0","requires_php":"","requires_plugins":"","header_name":"Post and Categories index generator","header_author":"Marco Const\u00e2ncio","header_description":"","assets_banners_color":"","last_updated":"2012-12-12 23:09:09","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"","header_author_uri":"http:\/\/www.betasix.net","rating":4.8,"author_block_rating":0,"active_installs":100,"downloads":14738,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","changelog"],"tags":[],"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":"1","5":"4"},"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.3"],"block_files":[],"assets_screenshots":{"screenshot-2.jpg":{"filename":"screenshot-2.jpg","revision":"1538879","resolution":"2","location":"plugin"},"screenshot-1.jpg":{"filename":"screenshot-1.jpg","revision":"1538879","resolution":"1","location":"plugin"}},"screenshots":{"1":"Tree index example.","2":"List index example."}},"plugin_section":[],"plugin_tags":[89,1403,86],"plugin_category":[],"plugin_contributors":[83124],"plugin_business_model":[],"class_list":["post-13102","plugin","type-plugin","status-closed","hentry","plugin_tags-category","plugin_tags-index","plugin_tags-post","plugin_contributors-marco-constancio","plugin_committers-marco-constancio"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/post-category-index-generator.svg","icon_2x":false,"generated":true},"screenshots":[{"src":"https:\/\/ps.w.org\/post-category-index-generator\/trunk\/screenshot-1.jpg?rev=1538879","caption":"Tree index example."},{"src":"https:\/\/ps.w.org\/post-category-index-generator\/trunk\/screenshot-2.jpg?rev=1538879","caption":"List index example."}],"raw_content":"<!--section=description-->\n<p>Allows the user to insert a index of posts and categories on page\/post using shortcodes.<\/p>\n\n<p>It can produce a list or tree like index wich may include the category name, subcategory name, the post title and parts of the post like the post excerpt or certain tags, like div, spans and headings.<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Install the plugin either by uploading the contents of \npost-category-index-generator.zip to the '\/wp-content\/plugins\/' directory \nor by using the 'Add New' in 'Plugins' menu in WordPress<\/li>\n<li>Activate the plugin through the 'Plugins' menu in WordPress<\/li>\n<\/ol>\n\n<h4>Parameters<\/h4>\n\n<ul>\n<li><strong>category<\/strong> - slug ot the category to parse. (mandatory)<\/li>\n<li><strong>display<\/strong> -  type of index to generate wich can be: <strong>list<\/strong> or <strong>tree<\/strong>.<\/li>\n<li><strong>show<\/strong> - elements that will be displayed. Parameters are: <strong>category_name<\/strong> and <strong>post_title<\/strong>.<\/li>\n<li><strong>links<\/strong> -  elements that will contain a hyperlink to the element instead of normal text. Parameters are: <strong>category_name<\/strong>, <strong>subcategory_name<\/strong> and <strong>post_title<\/strong>.<\/li>\n<li><strong>hide_empty<\/strong> - hides\/displays empty categories. Parameters are: <strong>true<\/strong> or <strong>false<\/strong>. (default: false)<\/li>\n<li><strong>order<\/strong> - set the order of the posts.  Parameters are: <strong>asc<\/strong> (ascending) and <strong>desc<\/strong> (descending). <\/li>\n<li><strong>orderby<\/strong> - set the wich parameter will be used when in the posts order.  Parameters are: <strong>author<\/strong>, <strong>date<\/strong>, <strong>category<\/strong>, <strong>title<\/strong>, <strong>modified<\/strong>, <strong>menu_order<\/strong>, <strong>parent<\/strong>, <strong>ID<\/strong> and <strong>rand<\/strong>. <\/li>\n<li><strong>hide_categories<\/strong> - list of categories (and its posts) that will not be displayed. In <strong>tree<\/strong> display this will include also the subcategories.<\/li>\n<li><strong>hide_category_posts<\/strong> - list of categories wich the its posts that will not be displayed.<\/li>\n<li><strong>tags_or<\/strong> and <strong>tags_and<\/strong> - list of tags wich will be used to filter. When both parameters are set, only the <strong>tags_and<\/strong> will be used.<\/li>\n<li><strong>post_sections<\/strong> - parts of the post that will be displayed.  Parameters are: <strong>excerpt<\/strong>, a html tag or a css html selectors separated with commas. For more info the html tags and css html selectors check the examples and  and the section <strong>How to find HTML elements?<\/strong> in http:\/\/simplehtmldom.sourceforge.net\/manual.htm. <\/li>\n<li><strong>postappend<\/strong> and <strong>postappend_link<\/strong> - appends part of the post to the post title and uses same options of the the <strong>post_sections<\/strong> parameter. <strong>postappend<\/strong> will produce normal text while <strong>postappend_link<\/strong> will produce a link. <\/li>\n<li><strong>postappend_prefix<\/strong> and <strong>postappend_separator<\/strong> - prefix and separator to be used then the parameters <strong>postappend<\/strong> or <strong>postappend_link<\/strong> are used. Options are <strong>comma<\/strong>, <strong>space<\/strong> and <strong>dash<\/strong>.<\/li>\n<\/ul>\n\n<p><strong>ATENTION<\/strong>: IF THE CATEGORY DOESN'T HAVE ANY SUBCATEGORIES YOU HAVE TO USE THE 'show' PARAMETER DO DIPLAY POSTS TITLES AND SUBCATEGORIES NAMES.<\/p>\n\n<h4>Examples for the parameters<\/h4>\n\n<p>Displays only subcategories (ignores the empty ones) in tree index.<\/p>\n\n<ul>\n<li>[pcig category=category-2 hide_empty=true]<\/li>\n<\/ul>\n\n<p>Displays main category name, subcategories names (ignores the empty ones), post titles with hyperlinks in tree index.<\/p>\n\n<ul>\n<li>[pcig category=category-2 show=category_name,post_title  links=post_title hide_empty=true]<\/li>\n<\/ul>\n\n<p>Displays subcategories names, subcategories names with hyperlinks and post titles with hyperlinks ordered by post title (in ascending order) in tree index.<\/p>\n\n<ul>\n<li>[pcig category=category-2 show=post_title links=subcategory_name,post_title order=asc orderby=title]<\/li>\n<\/ul>\n\n<p>Displays main category name, subcategories names (ignores the empty ones), post titles with hyperlinks in list index.<\/p>\n\n<ul>\n<li>[pcig category=category-2 display=list show=category_name,post_title links=post_title hide_empty=true]<\/li>\n<\/ul>\n\n<p>Displays main category name, subcategories names, ignores the content of 2 categories and ignore posts from other 2 categories.<\/p>\n\n<ul>\n<li>[pcig category=category-2 show=category_name,post_title hide_categories=category3,category-4 hide_category_posts=category5,category-6]<\/li>\n<\/ul>\n\n<p>Displays main category name, subcategories names and post_title of post that have both tags.<\/p>\n\n<ul>\n<li>[pcig category=category-2 show=category_name,post_title tags_and=tag1,tag2]<\/li>\n<\/ul>\n\n<p>Displays subcategories names, post titles with hyperlinks and the posts excerpts, heading 1 and heading 2 titles in tree index.<\/p>\n\n<ul>\n<li>[pcig category=category-2 show=post_title links=post_title post_sections=h1,h2,post_excerpt]<\/li>\n<\/ul>\n\n<p>Displays subcategories names, post titles with hyperlinks and the content of every html element in the post with the id equal to id123 (parameter that always starts with a number sign (#) ) and class equal class123 (parameter that always starts with a dot (.) ).<\/p>\n\n<ul>\n<li>[pcig category=category-2 show=post_title links=post_title post_sections=#id123,.class123]<\/li>\n<\/ul>\n\n<p>Displays subcategories names,  post_excerpt and h1 elements appended to the post titles, using a dash as separator between elements and dash between the title and the elements.<\/p>\n\n<ul>\n<li>[pcig category=category-2 show=post_title postappend_prefix=dash postappend_separator=dash postappend=post_excerpt,h1]<\/li>\n<\/ul>\n\n<h4>Classes<\/h4>\n\n<p>The code generated by this plugin will contain some html classes will allow to style the index by add css rules to the theme's css file. The following classes can be used:<\/p>\n\n<ul>\n<li><strong>pcig-ul-list<\/strong> and <strong>pcig-top-ul-list<\/strong> - list class<\/li>\n<li><strong>pcig-li-item<\/strong> - list element class<\/li>\n<li><strong>pcig-category<\/strong> - category span element<\/li>\n<li><strong>pcig-category-link<\/strong> - hyperlink class<\/li>\n<li><strong>pcig-post-title<\/strong> <strong>pcig-post-excerpt<\/strong> <strong>pcig-post-title-link<\/strong> - post span class<\/li>\n<\/ul>\n\n<h4>Examples of css<\/h4>\n\n<p>Change the left margin of the index of the index:\n    .pcig-top-ul-list{ margin-left: 5px; }<\/p>\n\n<p>Use image bullets for categories: \n    .pcig-ul-list{ list-style-type:none; }\n    .pcig-category{ padding-left: 20px; background:transparent url(redcheck.gif) no-repeat scroll 0 0;}<\/p>\n\n<!--section=changelog-->\n<h4>0.1<\/h4>\n\n<p>First version of the plugin.<\/p>\n\n<h4>0.1.1<\/h4>\n\n<p>Fixed bug that caused incorrect post link generation.<\/p>\n\n<h4>0.1.2<\/h4>\n\n<p>Fixed bug that caused only one post excerpt to be displayed.<\/p>\n\n<h4>0.1.3<\/h4>\n\n<p>Fixed bug that produced warnings.<\/p>\n\n<h4>0.1.4<\/h4>\n\n<p>Fixed bug that produced incorrect html on certain ocasions.\nTweaks in certain functions.\nAdd the option to set post order<\/p>\n\n<h4>0.1.5<\/h4>\n\n<p>Added option to ignore categories.\nAdded option to ignore all post from selected categories.<\/p>\n\n<h4>0.1.6<\/h4>\n\n<p>Added classes to allow easier styling.<\/p>\n\n<h4>0.1.7<\/h4>\n\n<p>Added missing class to the top ul element to allow easier styling.<\/p>\n\n<h4>0.1.8<\/h4>\n\n<p>Added a few tweaks to the code for better perfomance.\nAdded extra parameter to allow to filter posts by tag.\nAdded extra parameter to allow to append text from post to the post title.\nAdded additional classes for styling and rename others with simpler names.<\/p>\n\n<h4>0.1.9<\/h4>\n\n<p>Added fix for displaying posts from a category with no child categories.<\/p>\n\n<h4>0.2.0<\/h4>\n\n<p>Fix for wordpress 3.5.<\/p>","raw_excerpt":"Allows the user to insert a index of posts and categories on page\/post.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/13102","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=13102"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/marco-constancio"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=13102"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=13102"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=13102"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=13102"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=13102"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=13102"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}