Viewing 2 replies - 1 through 2 (of 2 total)
  • I second this question.

    I did it like this:

    <div class="su-row">
    <div class="su-column su-column-size-1-3">
    <div class="su-column-inner"><?php the_post_thumbnail( array(300,'300') );?></div>
    </div>
    <div class="su-column su-column-size-2-3">
    <div class="su-column-inner">
    <div class="su-table">
    <table>
    <tbody>
    <tr>
    <td>Brand</td>
    <td><strong><?php echo get_post_meta( get_the_ID(), 'brand', true ); ?></strong></td>
    </tr>
    <tr>
    <td>Product Code</td>
    <td><?php echo get_post_meta( get_the_ID(), 'product_code', true ); ?></td>
    </tr>
    <tr>
    <td>Availability</td>
    <td><?php echo get_post_meta( get_the_ID(), 'availability', true ); ?></td>
    </tr>
    </tbody>
    </table>
    </div>
    </div>
    </div>
    </div>

    But it is not working ??

    Plugin Author Vova

    (@gn_themes)

    Hi,

    there is a two ways to do that.

    Way 1: easy

    <?php echo do_shortcode( '[button style="flat"] Click me [/button]' ); ?>

    Way 2: PHP

    <?php
    echo Su_Shortcodes::button(
       array( 'style' => 'flat' ),
       'Click me'
    );
    ?>

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Use of short code inside php’ is closed to new replies.