• Resolved bgrgroup

    (@bgrgroup)


    Hi,
    Im retrieving ‘focus kw for products with code like this:

    global $post;
    	$productID =  $post->id;
    	$focuskw_val = get_post_field( '_yoast_wpseo_focuskw', $productID );
    	$kw_sinonymus = get_post_field( '_yoast_wpseo_keywordsynonyms', $productID );
    

    Is it possible and how to get focus keyword for current product category?

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi,

    We are not sure what you are wanting to accomplish. Did you want to output the focus keywords for products and product categories as part of a title on a template? Or did you want to export them into a CSV file so you can edit them?

    Plugin Support Jerlyn

    (@jerparx)

    Closed due to inactivity.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Retrieve focus keyword in template’ is closed to new replies.