Description
WordPress is a great CMS. But until now one critical function has been missing: You haven’t been able to sort each category.
But now you can – with this amazing plugin: PrioCat.
The plugin uses Custom Fields to sort the posts.
This plugin use Scriptaculous.
Installation
-
Upload the folder PrioCat to the
/wp-content/plugins/
directory -
Activate the plugin through the ‘Plugins’ menu in WordPress
-
Place
if (is_category()): if($_REQUEST[cat]): $cat_id = $_REQUEST[cat]; else: $wp_terms = $wpdb->prefix . "terms"; $cat_id = single_cat_title("", false); $sql15 = $wpdb->get_results("SELECT term_id FROM $wp_terms WHERE name = '$cat_id' limit 1"); foreach($sql15 as $sql16) { $cat_id = $sql16->term_id; } endif; $cat_priot = "cat_priot_" . $cat_id; $posts = query_posts($query_string. '&orderby=meta_value_num&meta_key=' . $cat_priot . '&order=ASC' ); endif;
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.
Reviews
There are no reviews for this plugin.
Contributors & Developers
“PrioCat” is open source software. The following people have contributed to this plugin.
ContributorsTranslate “PrioCat” into your language.
Interested in development?
Browse the code, check out the SVN repository, or subscribe to the development log by RSS.
Changelog
0.1
- The first stable version of PrioCat.
0.2
- Updated PHP-code to the templates.
0.3
- Updated PHP-code in the admin and templates.