krot

All in One SEO Pack vs Category SEO Meta Tags

Nov 27th, 2015
88
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //All in One SEO Pack vs Category SEO Meta Tags
  2. else if ( ( is_tax() || is_category() ) && !is_feed() ) {//<-- $cat_obj = $this->get_queried_object();$title=json_encode($cat_obj);
  3.    
  4.     $cur_cat_id = get_cat_id( single_cat_title("",false) );
  5.     if(is_category($cur_cat_id)) {
  6.         if(get_option('cat_meta_key_'.$cur_cat_id)) {
  7.         $cat_meta_data = get_option('cat_meta_key_'.$cur_cat_id);
  8.         if($cat_meta_data['page_title'])return $cat_meta_data['page_title'];
  9.     }
  10.     }
  11.     return $this->get_tax_title();//<-
  12.  
  13. ..
  14.                 if (!is_category()) {
  15.                 $meta_string .= sprintf( "<meta name=\"description\" %s content=\"%s\" />\n", $desc_attr, $description );
  16.                 }
RAW Paste Data