Home Forums WoodMart support forum HTML Block in php

HTML Block in php

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #125477

    jonathangermany
    Participant

    I have added to the archive-product.php the following lines:

    <?php if (is_product_category(‘Example Category’)) : ?>
    [html_block id="3333"]

    But when I go now on the category page it only displays “[html_block id="3333"]” and not the whole HTML block behind it. Does somebody know how to adjust it that it shows the HTML?

    #125503

    Artem Temos
    Keymaster

    Hi,

    You can use the following PHP code for this

    echo do_shortcode('[html_block id="3333"]');

    Regards

    #126136

    jonathangermany
    Participant

    Thank you!

    #126169

    You are welcome! If you have any questions please feel free to contact us.

    Best Regards

Tagged: 

Viewing 4 posts - 1 through 4 (of 4 total)

The topic ‘HTML Block in php’ is closed to new replies.