Viewing 5 replies - 1 through 5 (of 5 total)
  • Michael Torbert

    (@hallsofmontezuma)

    WordPress Virtuoso

    That is very unlikely. There’s no code in All in One SEO Pack on the front end that can do a redirect.

    To troubleshoot and narrow down a possible plugin/theme conflict, disable all other plugins and switch to the default theme. With only All in One SEO Pack enabled (and the default theme), try again.

    https://semperplugins.com/documentation/how-to-troubleshoot-issues-with-all-in-one-seo-pack/

    Once you’ve done this, report back the results, and we’ll go from there.

    Thread Starter cnk001

    (@cnk001)

    Ok, I disabled iThemes Security, but still have problem with titles..

    Here is an English example: https://demo.djmimi.net/themes/reviews/search-page/?review-category=car-players
    Title: Car Players – Search Page – Reviews

    If All in One is enabled, there is only: Search Page – Reviews
    without phrase ‘Car Players’ ??

    In functions.php I found this code:

    if( !function_exists('reviews_wp_title') ){
    function reviews_wp_title( $title, $sep ) {
    	global $paged, $page, $reviews_slugs;
    
    	if ( is_feed() ){
    		return $title;
    	}
    
    	if( !empty( $_GET[$reviews_slugs['keyword']] ) ){
    		$title = $_GET[$reviews_slugs['keyword']]." $sep ".$title;
    	}
    
    	if( !empty( $_GET[$reviews_slugs['review-category']] ) ){
    		$term = get_term_by( 'slug', $_GET[$reviews_slugs['review-category']], 'review-category' );
    		$title = $term->name." $sep ".$title;
    	}
    
    	if( !empty( $_GET[$reviews_slugs['review-tag']] ) ){
    		$term = get_term_by( 'slug', $_GET[$reviews_slugs['review-tag']], 'review-tag' );
    		$title = $term->name." $sep ".$title;
    	}
    
    	return $title;
    }
    add_filter( 'wp_title', 'reviews_wp_title', 10, 2 );
    }
    
    if( !function_exists('reviews_wp_title_new') ){
    function reviews_wp_title_new( $title ) {
    	global $reviews_slugs;
    	if( !empty( $_GET[$reviews_slugs['keyword']] ) ){
    		$title['title'] = $_GET[$reviews_slugs['keyword']]." - ".$title['title'];
    	}
    
    	if( !empty( $_GET[$reviews_slugs['review-category']] ) ){
    		$term = get_term_by( 'slug', $_GET[$reviews_slugs['review-category']], 'review-category' );
    		$title['title'] = $term->name." - ".$title['title'];
    	}
    
    	if( !empty( $_GET[$reviews_slugs['review-tag']] ) ){
    		$term = get_term_by( 'slug', $_GET[$reviews_slugs['review-tag']], 'review-tag' );
    		$title['title'] = $term->name." - ".$title['title'];
    	}
    
        return $title;
    }
    add_filter( 'document_title_parts', 'reviews_wp_title_new', 10, 1 );
    }
    
    if( !function_exists('reviews_wp_seo_title') ){
    function reviews_wp_seo_title( $title ) {
    	global $reviews_slugs;
    	if( !empty( $_GET[$reviews_slugs['keyword']] ) ){
    		$title = $_GET[$reviews_slugs['keyword']]." - ".$title;
    	}
    
    	if( !empty( $_GET[$reviews_slugs['review-category']] ) ){
    		$term = get_term_by( 'slug', $_GET[$reviews_slugs['review-category']], 'review-category' );
    		$title = $term->name." - ".$title;
    	}
    
    	if( !empty( $_GET[$reviews_slugs['review-tag']] ) ){
    		$term = get_term_by( 'slug', $_GET[$reviews_slugs['review-tag']], 'review-tag' );
    		$title = $term->name." - ".$title;
    	}
    
        return $title;
    }
    add_filter( 'wpseo_title', 'reviews_wp_seo_title' );
    }

    I noticed that the titles are set in “document_title_parts” filter

    Michael Torbert

    (@hallsofmontezuma)

    WordPress Virtuoso

    You can find documentation on our title format settings here https://semperplugins.com/documentation/title-settings/

    Thread Starter cnk001

    (@cnk001)

    I know about this, but this theme has a custom search page

    Michael Torbert

    (@hallsofmontezuma)

    WordPress Virtuoso

    In that case you may want the title filter API hook https://semperplugins.com/documentation/aioseop_title/

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Variables removed from url?’ is closed to new replies.