3,16 do not show custom dynamic tags – bug
-
New Elementor pro do not show my custom dynamic tags on all pages I have acess. Rollback fixed it on all sites.
An example of one of the classes in snippets:class Elementor_type_of_custom_post_type extends \Elementor\Core\DynamicTags\Tag {
public function get_name() { return 'Post_type_name'; } public function get_title() { return __( 'Post type name', 'elementor-pro' ); } public function get_group() { return 'custom-tags'; } public function get_categories() { return [ \Elementor\Modules\DynamicTags\Module::TEXT_CATEGORY, \Elementor\Modules\DynamicTags\Module::BASE_GROUP]; } public function render() { global $post; //my long code
}
echo “” . $content . “”;
}
}add_action( ‘elementor/dynamic_tags/register_tags’, function( $dynamic_tags ) {
\Elementor\Plugin::$instance->dynamic_tags->register_group( 'custom-tags', [ 'title' => 'Custom Dynamic Tags' ] ); $dynamic_tags->register_tag( 'Elementor_type_of_custom_post_type' );
} );
The page I need help with: [log in to see the link]
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘3,16 do not show custom dynamic tags – bug’ is closed to new replies.