How can I display the result of the [discourse_sso_client login='Login Through the Forum']
shortcode in a php template in wordpress? That is to say, this is a template not represented by a page or post but a raw php/html template.
You can use the shortcode in a template either by calling do_shortcode
or by directly calling the function that’s used to create the shortcode content.
either:
<?php echo do_shortcode("[discourse_sso_client login='Login Through the Forum']"); ?>
or:
<?php echo discourse_sso_client_shortcode( array( 'login' => 'Login Through the Forum' ) ); ?>
5 Likes