• Resolved Talha Imam

    (@talhaimam)


    I have build up a review system using Site Reviews. Almost all the pages on my site need to show:
    1) Site Review Form
    2) Site Reviews Summary
    3) Site Reviews List

    So I’ve called all the 3 Shortcodes with the do_shortcode function in the footer.php of my theme. Now the problem at hand is huge, I need to replace all these shortcodes with direct functions to fasten the site as the do_shortcode function takes its time.

    I have already replaced site reviews list’s shortcode with the glsr_get_reviews function and it works well. However, I can’t find the direct functions for pulling up the site review submission form and reviews summary. If there ain’t a direct function for this, which I am guessing there ain’t, then please guide me through building up these functions because we cannot afford calling shortcodes on our site. Any help in this regard will be appreciated. Thanks

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Author Gemini Labs

    (@geminilabs)

    Functions are not available for those.

    What is the reason for not using the WordPress do_shortcode function?

    There is extremely little overhead used by this function, particularly since you are only passing it the shortcode string and no other content.

    https://developer.wordpress.org/reference/functions/do_shortcode/#source

    If you are experiencing a slow website, I recommend you look into slow database queries, slow hooks, and caching as optimising these will give you the most speed increases. You can use the Debug Bar plugin by WordPress and the accompanying Slow Actions for Debug Bar plugin to track down what is making the largest performance impact on your site.

Viewing 1 replies (of 1 total)
  • The topic ‘How to fetch the site review form & review summary with a function?’ is closed to new replies.