Plugin Directory

Changeset 1544143


Ignore:
Timestamp:
12/01/2016 04:24:09 PM (9 years ago)
Author:
sociusmarketing
Message:
  • Fixed error on pagination option.
  • Fixed error on archive template for retrieving category title.
  • Removed box-sizing on CSS.
Location:
socius-marketing-page-taxonomy/trunk
Files:
5 edited

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 
    71@font-face {
    82    font-family: 'stateface';
  • socius-marketing-page-taxonomy/trunk/inc/archive-pages.php

    r1538477 r1544143  
    3232    if ( ! empty( $terms ) && ! is_wp_error( $terms ) ) {
    3333        $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') {
    3535          $content .= '<h1>Articles</h1>';
    3636        }
     
    9595    if ( ! empty( $terms ) && ! is_wp_error( $terms ) ) {
    9696        $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') {
    9898            $content .= '<h1>Areas Served</h1>';
    9999        }
     
    124124                    }
    125125                    wp_reset_postdata();
    126                 if(get_option('smct_width_of_pages')[0] == 'full-width') {
     126                if(get_option('smct_width_of_pages') == 'full-width') {
    127127                    $width = 'smct-col-md-3 smct-col-sm-6 smct-col-xs-12';
    128128                } else {
  • socius-marketing-page-taxonomy/trunk/inc/template-archive.php

    r1538477 r1544143  
    3333                <?php if ( is_tax('smct_cats') ) {
    3434                    $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;
    3637                } elseif ( is_tax('smct_areas') ) {
    3738                    if(array_key_exists($term_id, $hierarchy)) {
  • socius-marketing-page-taxonomy/trunk/readme.txt

    r1538477 r1544143  
    44Requires at least: 3.0.1
    55Tested up to: 4.6.1
    6 Stable tag: 1.0.3
     6Stable tag: 1.0.4
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    6262== Changelog ==
    6363
     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
    6469= 1.0.3 =
    6570* Added option to turn off pagination of taxonomy archive pages.
  • socius-marketing-page-taxonomy/trunk/socius-marketing-page-taxonomy.php

    r1538477 r1544143  
    211211
    212212function 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') {
    214214      if ( !is_admin() && $query->is_main_query() && is_tax('smct_cats') ) {
    215215        $query->set( 'posts_per_page', '-1' );
Note: See TracChangeset for help on using the changeset viewer.