The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

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

  1. Bones_ct
    Posted 3 years 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.


  2. danmont
    Posted 3 years 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
    Posted 3 years 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

  • WP Customer Reviews
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic