Include get_template_part into specific section by using WPBakery Page Builder

Question

I have a page ‘a’ which is built by using WPBakery Page Builder and there are some blocks with info. Then there is another page ‘b’ that loops through custom post types and displays them there. I need to display these items, just like they are there, by using get_template_part between the sections from the builder. Is there a way to do so? Currently, I have a version that adds the part to the end, but I need somehow to add the part for example, between some sections.
My code on page ‘a’ now:

<?php
    while (have_posts()):
        the_post();
        the_content();
    endwhile;
    get_template_part( 'template-parts/info-list-template' );
?>

Maybe someone has ideas on how to achieve this?

--------------------------------------------------

>>> Share a link to this question, just copy and paste the code bellow on your web page <<<

<a href="https://www.wptricks.com/question/include-get_template_part-into-specific-section-by-using-wpbakery-page-builder/">

Include get_template_part into specific section by using WPBakery Page Builder</a>
0
, istoby 1 month 0 Answers 45 views 0

Leave an answer