I am trying to use Yoast Local Plug- In
-
I have bought Yoast Local plugin, and I am trying to use it. I had already created 4 landing pages for each location I am servicing. However, with Location in Yoast, it allows me to create a landing page ( on Location, I have to use WP basic Editor – but I don’t code). I like Elementor Pro Landing Pages.
Yoast has given me this filter script – but like I said I have no idea how to use this
If you create a custom page with Elementor for the locations, then you will need to specify a custom post type for your location pages
/**
* Changes the Yoast SEO: Local post type used for locations.
*
* @param string $post_type The post type we’re replacing.
*
* @return string Our locations post type.
*/
function my_custom_locations_post_type( $post_type ) {
return ‘my_custom_locations_post_type’;
}add_filter( ‘wpseo_local_post_type’, ‘my_custom_locations_post_type’, 10, 1 );
-
-
- The topic ‘I am trying to use Yoast Local Plug- In’ is closed to new replies.