P
P
Pantene7422017-02-16 15:14:08
CMS
Pantene742, 2017-02-16 15:14:08

Wordpress why shortcodes do not work in the created template for the page?

Created a template

<?php
/*
Template Name: myshablon
*/



echo do_shortcode('[yottie id="2"]');


?>

applied it to the page and it doesn't work. This is the plugin shortcode. I also tried without squares.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Igor Mavlikhanov, 2017-02-16
@Pantene742

this means that the shortcode is not defined, or it is processed using a regular expression. But anyway, try thisapply_filters('the_content','[yottie id="2"]');

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question