Question
I want create shortcode where content display if user meta equal a value Work but coding not perfect how would you have done ? If necessary, how to improve? Example content display if firstname user is Jeff [check-if-equal usermeta="firstname" uservalue="Jeff"] Yes [/check-if-equal] <?php function func_check_if_equal( $atts, $content ...
0
4 weeks 0 Answers 18 views

Question
I build custom meta box that get text and i need to know if user insert shortcode inside and convert the shortcode to his code. for example: inside textarea user insert: Hello Word [contact-form-7 id="63" title="Contact form 1"] the textarea can get ...
0
1 month 0 Answers 18 views

Question
Hopefully a simple question. I am creating two simple plugins, one for tabs and one for accordions. I have the following code to display an accordion within the tabs. if (has_shortcode($tabcontent, 'load_cmc_accordions')) { echo do_shortcode($tabcontent); } else { ...
0
1 month 0 Answers 19 views