{"id":8858,"date":"2010-04-20T16:39:02","date_gmt":"2010-04-20T16:39:02","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/priocat\/"},"modified":"2010-10-14T03:06:02","modified_gmt":"2010-10-14T03:06:02","slug":"priocat","status":"closed","type":"plugin","link":"https:\/\/wordpress.org\/plugins\/priocat\/","author":6016577,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"0.2","stable_tag":"trunk","tested":"3.0.5","requires":"2.9.2","requires_php":"","requires_plugins":"","header_name":"PrioCat","header_author":"Filip Wallberg","header_description":"","assets_banners_color":"","last_updated":"2010-10-14 03:06:02","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"http:\/\/www.flopper.dk","header_author_uri":"http:\/\/www.flopper.dk","rating":0,"author_block_rating":0,"active_installs":0,"downloads":1291,"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":0,"5":0},"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":[],"block_files":[],"assets_screenshots":[],"screenshots":[],"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[610,51091,6658],"plugin_category":[],"plugin_contributors":[],"plugin_business_model":[],"class_list":["post-8858","plugin","type-plugin","status-closed","hentry","plugin_tags-categories","plugin_tags-prioritizing","plugin_tags-sorting","plugin_committers-fiwa"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/priocat.svg","icon_2x":false,"generated":true},"screenshots":[],"raw_content":"<!--section=description-->\n<p>WordPress is a great CMS. But until now one critical function has been missing: You haven't been able to sort each category.<\/p>\n <p>But now you can - with this amazing plugin: PrioCat.<\/p>\n <p>The plugin uses Custom Fields to sort the posts.<\/p>\n <p>This plugin use Scriptaculous.<\/p>\n\n<!--section=installation-->\n<ol>\n<li><p>Upload the folder PrioCat to the <code>\/wp-content\/plugins\/<\/code> directory<\/p><\/li>\n<li><p>Activate the plugin through the 'Plugins' menu in WordPress<\/p><\/li>\n<li><p>Place <code>if (is_category()): if($_REQUEST[cat]): $cat_id = $_REQUEST[cat]; else: $wp_terms = $wpdb-&gt;prefix . \"terms\"; $cat_id = single_cat_title(\"\", false); $sql15 = $wpdb-&gt;get_results(\"SELECT term_id FROM $wp_terms WHERE name = '$cat_id' limit 1\"); foreach($sql15 as $sql16) { $cat_id = $sql16-&gt;term_id; } endif; $cat_priot = \"cat_priot_\" . $cat_id; $posts = query_posts($query_string. '&amp;orderby=meta_value_num&amp;meta_key=' . $cat_priot . '&amp;order=ASC' ); endif;<\/code> in the template archive.php. Before get_header();. If you don't have a archive.php, then place the code in the template index.php.<\/p><\/li>\n<\/ol>\n\n<!--section=changelog-->\n<h4>0.1<\/h4>\n <ul>\n<li>The first stable version of PrioCat.<\/li>\n<\/ul>\n <h4>0.2<\/h4>\n <ul>\n<li>Updated PHP-code to the templates.<\/li>\n<\/ul>\n <h4>0.3<\/h4>\n <ul>\n<li>Updated PHP-code in the admin and templates.<\/li>\n<\/ul>","raw_excerpt":"You can use this plugin to prioritize the posts in each category.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/8858","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=8858"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/fiwa"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=8858"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=8858"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=8858"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=8858"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=8858"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=8858"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}