If you want to echo the shortcode in a template just do this.
<?php echo do_shortcode(' [ add the fts shortcode here from settings page ] '); ?>
Hi,
Any way to pass a dynamic variable through there?
example:
echo do_shortcode(‘[fts facebook id=’.$theID.’posts_displayed=page_only type=page]’);?>
When I try this it generates an error.
Error: (#803) Some of the aliases you requested do not exist: posts_displayed=page_only
Type: OAuthException
You should be able to do that. Possibly you need another space before posts_displayed….
Also make sure your fb id is valid and will work by entering is here on our main page. http://feedthemsocial.com/
echo do_shortcode(‘[fts facebook id=’.$theID.’ posts_displayed=page_only type=page]’);?>
Spencer
Ooof, the extra space did the trick. Thanks!
You got it! After you’ve tested it all out if you could leave a review that would be awesome! https://ww.wp.xz.cn/support/view/plugin-reviews/feed-them-social
Spencer