• Hello!
    Is it possible to make a meta title and description for a page with profile search results.

    For example, on a page like /members/?members_search=CITY there would be a meta title and a description: Participants from the city CITY.

    I would like to make landing pages from such pages to attract traffic from advertising and search engines.

    There is such a code for changing the title in the profile. How can I redo it for search results? Help please.

    CODE:

    function bpdev_bp_items_title( $title ) {
    	if ( bp_is_blog_page() || bp_is_directory() ) {
    		return $title;
    	}
    	if ( bp_is_user() ) {
    		$title = sprintf( ' %s @%s looking for dating in %s, %s ', bp_get_displayed_user_fullname(), bp_get_displayed_user_username(), bp_get_member_profile_data('field=City'), bp_get_member_profile_data('field=Страна') );
    	} 
    	return $title;
    }
    
    add_filter( 'wpseo_title', 'bpdev_bp_items_title' );

    The page I need help with: [log in to see the link]

Viewing 8 replies - 1 through 8 (of 8 total)
Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Meta title and description for the search results page’ is closed to new replies.