I'm trying to show the_content()
in a related template file.
It is working in 2 almost similar coded templates files.
But if I use it in this template the page will not even load.
The code with the_content();
if( $eddrd_query->have_posts() && $go ) { ?>
<div id="layero-related-downloads">
<h3><?php echo $related_dl_title; ?></h3>
<div id="edd-related-items-wrapper" class="edd-rp-single">
<?php $countRow = 1; // Editted: for creating 3 item rows
while ($eddrd_query->have_posts()) {
$eddrd_query->the_post();
if ($post->ID == $exclude_post_id) continue;
if ($countRow%3 == 1) { // Editted: for creating 3 item rows
echo "<div class='row'>";
} ?>
<div class="col-md-4">
<div class="edd_download_inner">
<?php the_content(); ?>
<div class="thumb">
<?php
$thumbID=get_post_thumbnail_id(get_the_ID());
$featImage=wp_get_attachment_image_src($thumbID,'olam-product-thumb');
$featImage=$featImage[0];
$alt = get_post_meta($thumbID, '_wp_attachment_image_alt', true);
$square_img = get_post_meta(get_the_ID(),"download_item_square_img");
// feat vid code start
Any idea?