Discover, trust, install: FAIR 1.0 is here

Plugin Banner

PrioCat

by fiwa

Version: 0.2

Download
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.

  1. Upload the folder PrioCat to the /wp-content/plugins/ directory

  2. Activate the plugin through the ‘Plugins’ menu in WordPress

  3. 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.

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.
  • Version:Version: 0.2
  • Last updated:Last updated: 14-10-2010
  • Requires:Requires: 2.9.2
  • Tested:Tested: 3.0.5
Average rating:0 out of 5 stars.
  • Number of ratings: 0 ratings
  • Number of ratings: 0 ratings
  • Number of ratings: 0 ratings
  • Number of ratings: 0 ratings
  • Number of ratings: 0 ratings
Back to top