WordPress.org

Ready to get started?Download WordPress

Forums

WP Customer Reviews
PHP alternative to shortcode [WPCR_INSERT] (3 posts)

  1. Bones_ct
    Member
    Posted 1 year ago #

    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.
    Thanks.

    http://wordpress.org/extend/plugins/wp-customer-reviews/

  2. danmont
    Member
    Posted 1 year ago #

    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,

  3. Bones_ct
    Member
    Posted 1 year ago #

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

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

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic