WPIntell

Source evidence

Call shortcode with PHP

Uix Shortcodes · support · 2019-02-22T12:51:00+00:00

mixedsentiment
mediumseverity
0.72relevance
4replies
Evidence linked to opportunitycommercial context

Proof Health

Open evidence

Commercial opportunities need traceable source links before they are treated as build-worthy.

6 / 29 rows with source links

20.7% of this page's analysis has direct source links.

0 build-decision rows missing links

0 rows here require auditable proof before promotion.

23 rows with no attached evidence

0 rows have source counts but still need direct links.

Conversation

support
oguido resolved
Hello. How can I do_shortcode() with yours? it’s not working… Hi, You can refer to: <?php if ( class_exists( 'UixShortcodes' ) ) { echo do_shortcode( "[uix_xxx]" ); } ?> it works! ok it works great, thanks!!!! @uiuxlab – I don’t see how that helps. That simply checks if the shortcode class is loaded. That won’t make do_shortcode operate any differently. If it does your shortcodes class needs to be reworked to instantiate on init, not just when the class is asked for explicitly. Otherwise echo do_shortcode( ” ); should just work. Yes, you don’t need to check the class, directly do. `echo do_shortcode( ” );

Comments

4 shown
UIUX Lab 2019-02-23T02:34:00+00:00

Hi, You can refer to: <?php if ( class_exists( 'UixShortcodes' ) ) { echo do_shortcode( "[uix_xxx]" ); } ?> it works!

oguido 2019-02-26T14:23:00+00:00

ok it works great, thanks!!!!

Daniel Iser 2019-07-04T02:26:00+00:00

@uiuxlab – I don’t see how that helps. That simply checks if the shortcode class is loaded. That won’t make do_shortcode operate any differently. If it does your shortcodes class needs to be reworked to instantiate on init, not just when the class is asked for explicitly. Otherwise echo do_shortcode( ” ); should just work.

UIUX Lab 2019-07-05T01:23:00+00:00

Yes, you don’t need to check the class, directly do. `echo do_shortcode( ” );