Support » Plugin: Share and Follow » [Plugin: Share and Follow] $page_title for empty categories

  • Hiya,

    I had errors when linking to categories with no posts (which I need to do since I’m using categories ‘creatively’ 😉

    So I suggest this slight change to functions.php

    if ( is_category() || is_archive()) {
    
    //    $category = get_the_category();
    //    $page_title = $page_title." | ".$category[0]->cat_name;
    
    $page_title = $page_title . wp_title( '|', false, 'right' );
    }

    Correct as you see fit 🙂

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: Share and Follow] $page_title for empty categories’ is closed to new replies.