{"id":69335,"date":"2017-06-02T10:13:01","date_gmt":"2017-06-02T10:13:01","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/primary-category\/"},"modified":"2017-06-24T09:23:43","modified_gmt":"2017-06-24T09:23:43","slug":"primary-category","status":"closed","type":"plugin","link":"https:\/\/sw.wordpress.org\/plugins\/primary-category\/","author":14750873,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"1.0.1","stable_tag":"trunk","tested":"4.7.33","requires":"3.0.1","requires_php":"","requires_plugins":"","header_name":"Primary Category","header_author":"Roberto Bruno","header_description":"Enables user to select a primary category for posts and custom posts types and creates a shortcode [primary-category name=\"CATEGORY NAME\" post_type=\"POST TYPE\"] to display a list of posts and custom posts based on their primary categories.","assets_banners_color":"9cd4dd","last_updated":"2017-06-24 09:23:43","external_support_url":"","external_repository_url":"","donate_link":"https:\/\/www.paypal.me\/pigrecolab","header_plugin_uri":"http:\/\/www.roberto-bruno.me","header_author_uri":"http:\/\/www.roberto-bruno.me","rating":0,"author_block_rating":0,"active_installs":10,"downloads":1988,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":[],"upgrade_notice":{"":"<p>no upgrades<\/p>"},"ratings":{"1":0,"2":0,"3":0,"4":0,"5":0},"assets_icons":{"icon-128x128.jpg":{"filename":"icon-128x128.jpg","revision":"1669453","resolution":"128x128","location":"assets"},"icon-256x256.jpg":{"filename":"icon-256x256.jpg","revision":"1669453","resolution":"256x256","location":"assets"}},"assets_banners":{"banner-1544x500.jpg":{"filename":"banner-1544x500.jpg","revision":"1669453","resolution":"1544x500","location":"assets"},"banner-772x250.jpg":{"filename":"banner-772x250.jpg","revision":"1669453","resolution":"772x250","location":"assets"}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":[],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":"1669453","resolution":"1","location":"assets"}},"screenshots":{"1":"screenshot-1.png: New custom radiobutton for primary category"},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[89,3989,32161],"plugin_category":[],"plugin_contributors":[94049],"plugin_business_model":[],"class_list":["post-69335","plugin","type-plugin","status-closed","hentry","plugin_tags-category","plugin_tags-custom-post","plugin_tags-primary","plugin_contributors-pigrecolab","plugin_committers-pigrecolab"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/primary-category_9cd4dd.svg","icon_2x":false,"generated":true},"screenshots":[{"src":"https:\/\/ps.w.org\/primary-category\/assets\/screenshot-1.png?rev=1669453","caption":"screenshot-1.png: New custom radiobutton for primary category"}],"raw_content":"<!--section=description-->\n<p>This plugin adds radiobuttons near every category (even if you add a new category) so you can choose the primary category of your post **. Selecting a primary category and updating the post saves this data into a custom field with a meta key of \"primary_category\".<\/p>\n\n<p>To display a list of all posts with a particular primary category, use the shortcode [primary-category name=\"CATEGORY NAME\" post_type=\"POST TYPE\"] where CATEGORY NAME is the name of the primary category you wish to display and POST TYPE is the custom post type name. If a name is not specified, the shortcode will default to all posts with \"uncategorized\" set as the primary category. images or post.<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Upload the plugin files to the <code>\/wp-content\/plugins\/<\/code> directory, or install the plugin through the WordPress plugins screen directly.<\/li>\n<li>Activate the plugin through the <code>Plugins<\/code> screen in WordPress<\/li>\n<li>See the categories tab in your post or custom post edit page. Set the radiobutton near your preferred category.<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt>Installation Instructions<\/dt>\n<dd><ol>\n<li>Upload the plugin files to the <code>\/wp-content\/plugins\/<\/code> directory, or install the plugin through the WordPress plugins screen directly.<\/li>\n<li>Activate the plugin through the <code>Plugins<\/code> screen in WordPress<\/li>\n<li>See the categories tab in your post or custom post edit page. Set the radiobutton near your preferred category.<\/li>\n<\/ol><\/dd>\n<dt>How can I access the primary category data?<\/dt>\n<dd><p>A post's primary category is stored in the post meta under the key 'primary_category'.<\/p><\/dd>\n<dt>What shortcode can I use to display posts with a particular primary category?<\/dt>\n<dd><p>[primary-category name=\"CATEGORY NAME\" post_type=\"POST TYPE\"]<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.0<\/h4>\n\n<ul>\n<li>First version of the plugin<\/li>\n<\/ul>","raw_excerpt":"WordPress plugin for setting and displaying primary categories for posts and custom post types. This is a fork from Jacob McKinney&#039;s Primary Cate &hellip;","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/sw.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/69335","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sw.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/sw.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/sw.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=69335"}],"author":[{"embeddable":true,"href":"https:\/\/sw.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/pigrecolab"}],"wp:attachment":[{"href":"https:\/\/sw.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=69335"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/sw.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=69335"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/sw.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=69335"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/sw.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=69335"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/sw.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=69335"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/sw.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=69335"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}