WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] [Wordpress Seo By Yoast]Focus Keyword Suggestion is not working (1 post)

  1. vefali
    Member
    Posted 2 years ago #

    I am using WordPress Seo by Yoast plugin for my site. I appreciate Yoast for this plugin.

    I have turkish website.but Focus Keyword do not complete suggestions.I remember, this function had been working old version of this plugin.

    I had tried other language keyword for testing. So far it is not working.

    I looked for in plugin code.I found this code for this function.
    ""
    function wpseo_get_suggest() {
    check_ajax_referer( 'wpseo-get-suggest' );

    $term = urlencode( $_GET[ 'term' ] );
    $result = wp_remote_get( 'http://www.google.com/complete/search?output=toolbar&q=' . $term );

    preg_match_all( '/suggestion data="([^"]+)"\/>/u', $result[ 'body' ], $matches );

    $return_arr = array();

    foreach ( $matches[ 1 ] as $match ) {
    $return_arr[ ] = html_entity_decode( $match, ENT_COMPAT, "UTF-8" );
    }
    echo json_encode( $return_arr );
    die();
    }
    ""

    what can I get turkish suggestions?

Topic Closed

This topic has been closed to new replies.

About this Topic