Tag Info

New answers tagged


In Yoast SEO there is no variable available for the content. The 2 variables that are available are %%excerpt%% and %%excerpt_only%%. The difference between these 2 is: %%excerpt%% - Replaced with the post/page excerpt (or auto-generated if it does not exist) %%excerpt_only%% - Replaced with the post/page excerpt (without auto-generation) For ...


Here is a safe and Yoast preferred method add_action('wp_head','add_custom_meta_description_box'); function retrieve_var1_replacement( $var1 ) { global $post; return strip_tags($post->post_content); } function register_my_plugin_extra_replacements() { wpseo_register_var_replacement( '%%mycustomdesc%%', 'retrieve_var1_replacement', ...


I assume location/state and location/state/city are template files. In those 2 template files you should copy the contents of header.php and edit there the title and the meta description. Also delete the request get_header().

Top 50 recent answers are included