ACF – additional seo description on filter
-
Hello,
thank for great plugin. I try to add new field in SEO rules (extra SEO description – I need description on the top of the archive during filtering and on the bottom of the archive) using ACF. On backed it is visible on SEO rules but I am not able to add it using any hook. Could you give me any tip how get to the object related with Seo rules?
add_action( 'woocommerce_after_main_content', 'custom_bottom_seo_description_on_filter', 10 );
function custom_bottom_seo_description_on_filter() {
if (class_exists("FilterEverything\Filter\Container")) {
// Get the SEO description
$seoFrontEnd = FilterEverything\Filter\Container::instance()->getSeoFrontendService();
$description = $seoFrontend->get( 'seo_description_bottom' ); // new field added using ACF in Seo rules post
echo $description
}
}
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- You must be logged in to reply to this topic.