{"id":32984,"date":"2011-05-06T08:00:00","date_gmt":"2011-05-06T08:00:00","guid":{"rendered":"https:\/\/www.weixiaoduo.com\/plugins\/2024\/02\/22\/catwalker\/"},"modified":"2015-04-24T03:23:00","modified_gmt":"2015-04-24T03:23:00","slug":"catwalker","status":"publish","type":"post","link":"https:\/\/www.weixiaoduo.com\/plugins\/catwalker\/","title":{"rendered":"CatWalker"},"content":{"rendered":"<p>The catWalker plugin lets you do more with WordPress categories. The plugin has these main uses.<\/p>\n<ol>\n<li>Generate a customizable list of categories within the contents of a page or post<\/li>\n<li>Create a configurable widget that will make it easy for visitors to find posts or pages at the intersection of two categories<\/li>\n<li>Generate a list of cross-categorizations on a page or post<\/li>\n<li>List the posts or pages from a given category on a page or post<\/li>\n<li>Automatically list at the bottom of each post the categories which have been assigned to that post<\/li>\n<li>Automatically list at the bottom of each post other posts in the same category<\/li>\n<li>Customize the ordering preferences and number of posts on category archive pages<\/li>\n<\/ol>\n<p>In addition, users can opt to use a hierarchical custom taxonomy (called \u201cAttributes\u201d) that applies to Pages as well as Posts. If you use the Attributes taxonomy, most of the above options can be used on pages as well as posts.<\/p>\n<h4>List categories<\/h4>\n<p>To generate a list of your site\u2019s categories add the following shortcode (in square brackets) to any post or page:<\/p>\n<p>[categories]<\/p>\n<p>The listing is highly configurable. To show just one branch of your category structure, for instance, you can create a shortcode like this:<\/p>\n<p>[categories child_of=\u201d#\u201d]<\/p>\n<p>where the # stands for the id of the parent category.<\/p>\n<p>This is only one of many attributes that you can use to customize your list. In general, you should be able to use any of the options documented at:<\/p>\n<p>https:\/\/codex.wordpress.org\/Template_Tags\/wp_list_categories<\/p>\n<p>In addition, if you can set a \u2018taxonomy\u2019 for your listing. In general, your choices will be to use the built-in \u201cCategories\u201d taxonomy or the custom \u201cAttributes\u201d taxonomy that comes with this plugin.<\/p>\n<p>Go to Settings > Writing to choose whether or not to use the custom \u201cAttributes\u201d taxonomy, and whether or not to make it the default for all CatWalker functions (shortcodes and the CrossCategorizer widget).<\/p>\n<h4>Cross Categorizer widget<\/h4>\n<p>On display pages, the Cross Categorizer widget includes two configurable dropdown lists of categories. Choose two categories, then click \u201cSearch\u201d to view the posts or pages that belong to both.<\/p>\n<p>On the admin side you can configure the widget to show different category branches in each dropdown.<\/p>\n<p>As of version 1.3.1 you can also opt to list empty categories. Previously empty categories were not listed, and that is still the default behavior.<\/p>\n<h4>Cross Categorizer shortcode<\/h4>\n<p>You can add a configurable list of cross-categorizations to any post or page. Use this shortcode<\/p>\n<p>[crosscat]<\/p>\n<p>with any of the options documented at:<\/p>\n<p>https:\/\/codex.wordpress.org\/Function_Reference\/get_categories<\/p>\n<p>To show cross categorizations add an \u201cintersector\u201d attribute. The list of categories will then link only to posts that belong also to the intersector category. Imagine, for instance, that \u201c10\u201d is the id for a category called \u201cYears\u201d with child categories \u201c2011,\u201d \u201c2010,\u201d \u201c2009,\u201d etc. Let \u201c20\u201d be the id for a category that names a particular course. The following shortcode would list all the children of Years, and the linked names would point only to posts or pages that had been categorized as belonging to the course in a give year.<\/p>\n<p>[crosscat child_of=\u201d10\u2033 intersector=\u201d20\u2033]<\/p>\n<p>The listing will show the number of results for each cross categorization, and links that do not find any results are semi-transparent.<\/p>\n<h4>List category posts<\/h4>\n<p>User the shortcode:<\/p>\n<p>[category-posts]<\/p>\n<p>to list on a page or post all the posts or pages belonging to a particular category (or other taxonomy term).<\/p>\n<h4>Custom \u201cAttributes\u201d Taxonomy<\/h4>\n<p>The hierarchical custom taxonomy \u201cAttributes\u201d applies to Pages as well as Posts. Activated it in the \u201cCatwalker Options\u201d section on the \u201cSettings > Writing\u201d page, where you can also opt to make \u201cAttributes\u201d the default taxonomy for CatWalker functions.<\/p>\n<h4>Post Attributes Listing<\/h4>\n<p>If you are using the custom Attributes taxonomy, you may want to include a list of Attributes assigned to a given post or page at the end of that post or page. Many themes offer similar lists of tags and categories, but because these lists are typically theme-specific, it is not possible to provide a theme-generic solution. On the other hand, you can improve your chances by setting a CSS class for the attributes listing so that it will be styled similarly to the category listing in your theme. You can set both of these options on the Settings > Writing page in the CatWalker Options settings.<\/p>\n<h4>Related Posts Listing<\/h4>\n<p>You can automatically add a list of related posts or pages to the end of every post or page by checking the appropriate box on the Settings > Writing page. You can designate specific categories or attributes to be included, you can specify categories or attributes whose child-terms will be included, or you can leave those inputs blank to list related posts for all terms. In a similar way, you can list terms for which to include no related-posts lists. The automated related-posts listing will operate only on your CatWalker default taxonomy.<\/p>\n<h4>Custom order and limit on Category Pages<\/h4>\n<p>(Currently available only for Categories and not for the custom Attributes taxonomy.) Go to the \u201cCatwalker Options\u201d section of the \u201cSettings > Writing\u201d page. Check the box to use a custom ordering and choose your preferences from the drop-down menus. You can sort by date or title, ascending or descending. You can also choose a custom number of posts to display on category archive pages.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>List categories or cross-categorizations in page or post contents. Let users search for the intersection of two categories.<\/p>\n","protected":false},"author":65,"featured_media":249491,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"slim_seo":{"title":"CatWalker - \u8587\u6653\u6735\u63d2\u4ef6\u76ee\u5f55","description":"List categories or cross-categorizations in page or post contents. Let users search for the intersection of two categories."},"footnotes":""},"categories":[1],"tags":[811,4412,11844,804],"class_list":["post-32984","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-uncategorized","tag-categories","tag-custom-taxonomies","tag-intersections","tag-widgets"],"_links":{"self":[{"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/posts\/32984","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/users\/65"}],"replies":[{"embeddable":true,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/comments?post=32984"}],"version-history":[{"count":0,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/posts\/32984\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/media\/249491"}],"wp:attachment":[{"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/media?parent=32984"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/categories?post=32984"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/tags?post=32984"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}