• Hello,

    I want to insert shortcode into my custom html. I write it like this:

    <div class="jirei-post-list">
            [pt_view id="bb8f40f3lv"]
        </div>

    or

    <div class="jirei-post-list">
            <?php echo do_shortcode("[pt_view id=bb8f40f3lv]"); ?>
        </div>

    But it didn’t show. is there any way to insert it?

    Thanks in advance.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Content Views

    (@pt-guy)

    Hi there,
    The second code is correct.
    Where did you put the code?
    Best regards,

    Thread Starter phantam

    (@phantam)

    Hi,
    I use custom html function in Elementor Plugin.
    I have already put the second code above to the custom html block, but it didn’t work.

    what’s wrong with it?

    Plugin Author Content Views

    (@pt-guy)

    Thank you for your reply.
    The custom HTML element of that plugin might not support shortcode or PHP code.
    Please try another element (for example “Text Editor” element), then add:

    
    <div class="jirei-post-list">
            [pt_view id="bb8f40f3lv"]
        </div>
    

    Best regards,

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘insert shortcode into a html custom block’ is closed to new replies.