Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi, keywords are not officially supported by Google News anymore.

    They are still in the Advanced plugin but only on popular demand by our Pro users, not because they are proven to (still) be beneficial… They might be, but it’s not officially acknowledged by Google.

    Thread Starter rickfrj

    (@rickfrj)

    Got it, thanks for the explanation.

    Please, how do I become a pro user?

    But there is still the xmlsf_news_keywords filter. You can use it like this, to add post_tag terms as keywords:

    function my_custom_keywords( $keywords ) {
    	global $post;
    
    	$terms = get_the_terms( $post->ID, 'post_tag' );
    	$names = array();
    
    	if ( $terms && ! is_wp_error( $terms ) ) {
    		foreach ( $terms as $term ) {
    			if ( is_object($term) && !empty($term->name) )
    				$names[] = $term->name;
    		}
    	}
    	$keywords = array_merge( (array) $keywords, $names );
    
    	return $keywords;
    }
    add_filter( 'xmlsf_news_keywords', 'my_custom_keywords' );

    To get the Pro version (no need for custom code) you can find the links on the admin page in the Advanced tab…

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘keywords do not appear’ is closed to new replies.