Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //All in One SEO Pack vs Category SEO Meta Tags
- else if ( ( is_tax() || is_category() ) && !is_feed() ) {//<-- $cat_obj = $this->get_queried_object();$title=json_encode($cat_obj);
- $cur_cat_id = get_cat_id( single_cat_title("",false) );
- if(is_category($cur_cat_id)) {
- if(get_option('cat_meta_key_'.$cur_cat_id)) {
- $cat_meta_data = get_option('cat_meta_key_'.$cur_cat_id);
- if($cat_meta_data['page_title'])return $cat_meta_data['page_title'];
- }
- }
- return $this->get_tax_title();//<-
- ..
- if (!is_category()) {
- $meta_string .= sprintf( "<meta name=\"description\" %s content=\"%s\" />\n", $desc_attr, $description );
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement