page title as keyword

#164591
  • Resolved Kate Ross
    Rank Math free

    We would like to have the product page title configured as the keyword – i don’t see how to do that – can you help pplease>

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hello,

    Thank you for contacting Rank Math and bringing your concern to our attention. I’m sorry for the delay and for any inconvenience this issue may have caused you.

    To add keywords same as your product page title, you can follow this screencast I’ve created:
    https://i.rankmath.com/6AnvNg

    I hope that helps. Thank you, and looking forward to your update.

    I reviewd your docs on bulk editing and we don’t seem to have any of the options that you mention -is that only in the pro Verison?

    Again we would like to set the key word of all of our products without have to do each one manually …when that is set up in titles and meta we get no results. We only get a rnaking when it is done manually.
    Thanks

    Hello,

    Thank you for keeping in touch with us.

    The Free version of Rank Math provides editing of SEO keywords for multiple product posts:
    SEO keyword edit

    Alternatively, we have this custom filter code to automatically add keywords to your products based on the post’s title:

    function update_focus_keywords() {
    	$posts = get_posts(array(
    		'posts_per_page' => -1,
    		'post_type' => 'product' /* post types: post, page, product */
    	));
    	foreach($posts as $p){
    		update_post_meta($p->ID,'rank_math_focus_keyword',strtolower(get_the_title($p->ID)));
    	}
    }
    add_action( 'init', 'update_focus_keywords' );

    You need to insert this code into your theme’s functions.php file. Do note that this will loop all your products. You can remove this code after you executed the code.

    Hope that helps and please do not hesitate to let us know if you need our assistance with anything else.

    Hello,

    Since we did not hear back from you for 15 days, we are assuming that you found the solution. We are closing this support ticket.

    If you still need assistance or any other help, please feel free to open a new support ticket, and we will be more than happy to assist.

    Thank you.

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

The ticket ‘page title as keyword’ is closed to new replies.