Support » Plugin: WP Customer Reviews » PHP alternative to shortcode [WPCR_INSERT]

  • Hello. I have a ecommerce wordpress with some custom .php files that output products. The plugin works fine as a shortcode inserted in the description of every product but i have a few hundred products and it will take forever to insert the shortcode in every one. So i was wondering if there is a php alternative of inserting the shortcode directly into the .php file that generates the pages.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Im curious about the same thing.

    There must be a way to display it with a
    ” <?php if(function_exists ” right in the code.
    Anyone have any ideas how to do that?

    thank you,

    <?php echo do_shortcode(‘[example]’); ?>

    where example is the shortcode you use in the editor in admin.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘PHP alternative to shortcode [WPCR_INSERT]’ is closed to new replies.