Changeset 1544143
- Timestamp:
- 12/01/2016 04:24:09 PM (9 years ago)
- Location:
- socius-marketing-page-taxonomy/trunk
- Files:
-
- 5 edited
-
css/styles.css (modified) (1 diff)
-
inc/archive-pages.php (modified) (3 diffs)
-
inc/template-archive.php (modified) (1 diff)
-
readme.txt (modified) (2 diffs)
-
socius-marketing-page-taxonomy.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
socius-marketing-page-taxonomy/trunk/css/styles.css
r1534568 r1544143 1 * {2 -webkit-box-sizing: border-box;3 -moz-box-sizing: border-box;4 box-sizing: border-box;5 }6 7 1 @font-face { 8 2 font-family: 'stateface'; -
socius-marketing-page-taxonomy/trunk/inc/archive-pages.php
r1538477 r1544143 32 32 if ( ! empty( $terms ) && ! is_wp_error( $terms ) ) { 33 33 $content = '<div id="smct-category-archive">'; 34 if(get_option('smct_display_page_titles') [0]== 'yes') {34 if(get_option('smct_display_page_titles') == 'yes') { 35 35 $content .= '<h1>Articles</h1>'; 36 36 } … … 95 95 if ( ! empty( $terms ) && ! is_wp_error( $terms ) ) { 96 96 $content = '<div id="smct-area-archive">'; 97 if(get_option('smct_display_page_titles') [0]== 'yes') {97 if(get_option('smct_display_page_titles') == 'yes') { 98 98 $content .= '<h1>Areas Served</h1>'; 99 99 } … … 124 124 } 125 125 wp_reset_postdata(); 126 if(get_option('smct_width_of_pages') [0]== 'full-width') {126 if(get_option('smct_width_of_pages') == 'full-width') { 127 127 $width = 'smct-col-md-3 smct-col-sm-6 smct-col-xs-12'; 128 128 } else { -
socius-marketing-page-taxonomy/trunk/inc/template-archive.php
r1538477 r1544143 33 33 <?php if ( is_tax('smct_cats') ) { 34 34 $category = get_the_terms($post->ID,'smct_cats'); 35 echo 'Articles - ' . array_values($category)[0]->name; 35 var_dump(get_the_terms($post->ID,'smct_cats')); 36 echo 'Articles - ' . $category[0]->name; 36 37 } elseif ( is_tax('smct_areas') ) { 37 38 if(array_key_exists($term_id, $hierarchy)) { -
socius-marketing-page-taxonomy/trunk/readme.txt
r1538477 r1544143 4 4 Requires at least: 3.0.1 5 5 Tested up to: 4.6.1 6 Stable tag: 1.0. 36 Stable tag: 1.0.4 7 7 License: GPLv2 or later 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 62 62 == Changelog == 63 63 64 = 1.0.4 = 65 * Fixed error on pagination option. 66 * Fixed error on archive template for retrieving category title. 67 * Removed box-sizing on CSS. 68 64 69 = 1.0.3 = 65 70 * Added option to turn off pagination of taxonomy archive pages. -
socius-marketing-page-taxonomy/trunk/socius-marketing-page-taxonomy.php
r1538477 r1544143 211 211 212 212 function smct_set_posts_per_page_for_archives( $query ) { 213 if(get_option('smct_paginate_archives') [0]== 'no') {213 if(get_option('smct_paginate_archives') == 'no') { 214 214 if ( !is_admin() && $query->is_main_query() && is_tax('smct_cats') ) { 215 215 $query->set( 'posts_per_page', '-1' );
Note: See TracChangeset
for help on using the changeset viewer.