• Resolved Lucas

    (@lukasbckinteriapl)


    Hi

    I think this might be a simple problem to solve to someone who knows PHP.
    I need to include tables into my products description field.
    I’m trying TablePress plugin.
    Plugin generates shortcodes like “[table id=1 /]” for each table you create.
    When I paste it into any of ‘pages’ it’s fine. But it’s not appearing in any of ‘product descriptions’.

    As far as I researched I would need to insert some PHP code somewhere in the theme. But I have no clue what code and where to paste it.
    Help!

    http://ww.wp.xz.cn/plugins/ready-ecommerce/

Viewing 1 replies (of 1 total)
  • Thread Starter Lucas

    (@lukasbckinteriapl)

    In case somebody stuck with the same problem I found the solution.
    If you edit productContent.php and change line
    echo str_replace("\n","<br />",get_the_content());
    to
    do_shortcode(str_replace("\n","<br />",get_the_content()));
    shortcodes will be visible in product description.

Viewing 1 replies (of 1 total)

The topic ‘Shortcodes in product description’ is closed to new replies.