Hey @support,
I need to know that when I am rendering this custom code it display the same content on different post I need to see different content. How can I do that.
if ($blog_query->have_posts()) :
while ($blog_query->have_posts()) :
$blog_query->the_post();
if (have_rows(‘work-sections’))
while (have_rows(‘work-sections’)) : the_row();
$current_post_id = get_the_ID();
if (get_row_layout() == ‘layout_1’) :
include(dirname(__FILE__) . “/flexible-content/sections/image-layout.php”);;
elseif (get_row_layout() == ‘layout_2’) :
include(dirname(__FILE__) . “/flexible-content/sections/headng-content.php”);
elseif (get_row_layout() == ‘testemonial_layout’) :
include(dirname(__FILE__) . “/flexible-content/sections/testemonial-content.php”);
elseif (get_row_layout() == ‘video_layout’) :
include(dirname(__FILE__) . “/flexible-content/sections/video-section.php”);
endif;
endwhile;
endwhile;
else :
// echo ‘No post found’;
endif; ?>