A
A
Abror Jakey2015-10-13 12:37:21
JavaScript
Abror Jakey, 2015-10-13 12:37:21

How to pull data from Wordpress pages via AJAX?

I use a plugin for Wordpress - Visual Composer for building pages. Everything works well, only if you load another page through ajax, then the data is not as it should be, shortcodes will be inserted before and after the content. How to make shortcodes display correctly?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Villarou, 2015-10-13
@ayyjay

Do you mean that the shortcodes did not work for you and just displayed as text? If so, then most likely you need to apply a filter:
add_filter('the_content', 'do_shortcode', 11);

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question