StefanoLisi Posted June 6, 2019 Share Posted June 6, 2019 Hi i'm using "Multi Rating Plugin" on my wordpress website and it work well in all page. I've an external php script to show operator stats and it work (you can display it in my homepage). Now I would like to insert into this php code (soap.php) the worpress shortcode that will display rating star system (it work if i add it for example on any page of my website with shortcode [mr_rating_result post_id="63"]). But the problem is that if i insert this short code on my php script i not display rating star This code not work on my script php (soap.php) http://www.lecartedellamore.it/soap/soap.php echo do_shortcode("[mr_rating_result post_id='63']"); I not display it on my homepage https://www.lecartedellamore.it/ but i don't see error... If i put this shortcode on wordpress page it work... but if i put in sample external script not work the shortcode is here example: https://www.lecartedellamore.it/cartomanti/desire-albus-codice-322/Is possible to output this shortcode in homepage into external php script? Quote Link to comment Share on other sites More sharing options...
maxxd Posted June 7, 2019 Share Posted June 7, 2019 I may not be understanding your question, but do_shortcode() is not a PHP function, it's a WordPress function. If you're trying to call it from a script that isn't run through WordPress (if it's an external script [I think is what you're describing]), it's not going to work. 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.