Problem with do_shortcode and [bps_directory]
-
Hi I hope you’re fine.
I have a problem with the plugin. When I place :<?php echo do_shortcode(‘[bps_directory]’); ?>
in a template, here is the error returned :
Warning: Cannot modify header information – headers already sent by (output started at C:\wamp64\www\xalpha\wp-includes\class.wp-styles.php:242) in C:\wamp64\www\xalpha\wp-content\plugins\bp-profile-search\bps-directory.php on line 129
I do not know what to do about this mistake. I have already tried with other themes and I get the same error. When I only place the shortcode in the WordPress editor it works. But I really need to use do_shortcode in my template to be able to handle some conditions with php…
Thanks in advance,
have a great day
The topic ‘Problem with do_shortcode and [bps_directory]’ is closed to new replies.