Changeset 1179798
- Timestamp:
- 06/12/2015 06:24:49 PM (11 years ago)
- Location:
- enhanced-category-pages/trunk
- Files:
-
- 3 edited
-
classes/ecp/Enhanced_Category.php (modified) (1 diff)
-
enhanced-category-pages.php (modified) (1 diff)
-
readme.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
enhanced-category-pages/trunk/classes/ecp/Enhanced_Category.php
r1102490 r1179798 212 212 } 213 213 214 //gets global current category and setup the global post data215 public function setup_ec_data( ) {214 //gets global current category or category with given id and setup the global post data 215 public function setup_ec_data($cur_cat_id = null) { 216 216 global $withcomments, $post; 217 //get global category/term id 218 219 $query_var = get_query_var("taxonomy"); 220 221 if ( empty($query_var) ) { 222 $cur_cat_id = get_cat_id(single_cat_title("", false)); 223 } else { 224 $term = get_term_by('slug', get_query_var("term"), $query_var); 225 $cur_cat_id = $term->term_id; 217 218 if (empty($cur_cat_id)) { 219 //get global category/term id 220 $query_var = get_query_var("taxonomy"); 221 222 if ( empty($query_var) ) { 223 $cur_cat_id = get_cat_id(single_cat_title("", false)); 224 } else { 225 $term = get_term_by('slug', get_query_var("term"), $query_var); 226 $cur_cat_id = $term->term_id; 227 } 226 228 } 227 229 -
enhanced-category-pages/trunk/enhanced-category-pages.php
r1102490 r1179798 4 4 Description: Create custom enhanced pages for categories. Manage category page as a custom post. 5 5 Author: Ciprian Amariei, Diana Amitroaei 6 Version: 1.0. 16 Version: 1.0.2 7 7 Text Domain: enhanced-category-pages 8 8 Text Path: languages -
enhanced-category-pages/trunk/readme.txt
r1102493 r1179798 5 5 Requires at least: 3.0.1 6 6 Tested up to: 4.1.1 7 Stable tag: 1.0. 17 Stable tag: 1.0.2 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 97 97 * bug fixing 98 98 99 = 1.0.2 = 100 * setup_ec_data allows now category id as parameter 101 99 102 100 103 == Upgrade Notice == … … 108 111 = 1.0.1 = 109 112 * Bugs fixed 113 114 = 1.0.2 = 115 * traverse categories using setup_ec_data that allows now category id as parameter
Note: See TracChangeset
for help on using the changeset viewer.