usage with do_shortcode in php template file
-
Hi,
I’m trying to get this plugin to work directly in a template file by using the <?php echo do_shortcode() ;> function. However if I try to put in specific options, some of them seem to work while others don’t.
For instance this code works (showing 3 posts per site):
<?php echo do_shortcode (‘[nlposts number_posts=”3″]’) ;?>But this one does not (trying to show just 3 posts all together):
<?php echo do_shortcode (‘[nlposts number_posts=”3″ sorting_limit=”3″]’) ;?>Also trying to set some options to “TRUE” does not seem to work.
Any suggestions?
Thanks!
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
The topic ‘usage with do_shortcode in php template file’ is closed to new replies.