Title: Load the shortcode via php
Last modified: January 8, 2025

---

# Load the shortcode via php

 *  Resolved [marco3253](https://wordpress.org/support/users/marco3253/)
 * (@marco3253)
 * [1 year, 5 months ago](https://wordpress.org/support/topic/load-the-shortcode-via-php/)
 * I’m loading the shortcode via php with do_shortcode and then passing the result
   via mustache to a custom html page.
   When I print the mustache variabile I see
   the <pre> html code of all the result but it’s not rendered.Is there a way to
   load this shortcode via php or maybe I do need to load some JS and CSS also?Thank
   you

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Plugin Support [Laca](https://wordpress.org/support/users/lacadev/)
 * (@lacadev)
 * [1 year, 5 months ago](https://wordpress.org/support/topic/load-the-shortcode-via-php/#post-18233766)
 * Hi [@marco3253](https://wordpress.org/support/users/marco3253/) 
   To ensure the
   shortcode renders properly, you need to include our JS script on the page where
   you embed the result using `do_shortcode`.
 * Please add the following script to your page:
 * `<script src="https://cdn.trustindex.io/loader.js"></script>`
 * Let us know if you need further assistance!
 * Kind regards,
   Laca from Trustindex
 *  Thread Starter [marco3253](https://wordpress.org/support/users/marco3253/)
 * (@marco3253)
 * [1 year, 4 months ago](https://wordpress.org/support/topic/load-the-shortcode-via-php/#post-18241374)
 * Ok now it’s working, but this loader.js is not included in the plugin?
   I’m afraid
   for the future maybe that website can go down or remove the js
 *  Plugin Support [Laca](https://wordpress.org/support/users/lacadev/)
 * (@lacadev)
 * [1 year, 4 months ago](https://wordpress.org/support/topic/load-the-shortcode-via-php/#post-18244835)
 * Hi [@marco3253](https://wordpress.org/support/users/marco3253/) 
   Thank you for
   your concern. Please rest assured that the loader.js file is served via Amazon’s
   Content Delivery Network (CDN). This ensures high availability and reliability.
   We guarantee that the file will remain accessible indefinitely, so you don’t 
   need to worry about any future disruptions. If you have further questions or 
   concerns, feel free to reach out! Best regards, Laca form Trustindex
 *  Thread Starter [marco3253](https://wordpress.org/support/users/marco3253/)
 * (@marco3253)
 * [1 year, 4 months ago](https://wordpress.org/support/topic/load-the-shortcode-via-php/#post-18256166)
 * Thank you for your feedback, let’s hope!

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Load the shortcode via php’ is closed to new replies.

 * ![](https://ps.w.org/wp-reviews-plugin-for-google/assets/icon-256x256.png?rev
   =2721569)
 * [Widgets for Google Reviews](https://wordpress.org/plugins/wp-reviews-plugin-for-google/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-reviews-plugin-for-google/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-reviews-plugin-for-google/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-reviews-plugin-for-google/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-reviews-plugin-for-google/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-reviews-plugin-for-google/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [marco3253](https://wordpress.org/support/users/marco3253/)
 * Last activity: [1 year, 4 months ago](https://wordpress.org/support/topic/load-the-shortcode-via-php/#post-18256166)
 * Status: resolved