hamlet
2013-11-17 00:11:09 UTC
Hello, I am the following issue:
I am using a custom post type (it has support for comments)
single-myPostType.php
if ( have_posts() ) {
while ( have_posts() ) {
the_post();
get_template_part('content', 'single-myCustomPostType');
comments_template('', true);
}
}
content-single-myCustomPostType.php
(...)
$loop = wp_get_the_related(get_the_ID());
if ($loop->have_posts())
while ($loop->have_posts()) {
$loop->the_post();
get_template_part('content', 'related');
}
(...)
It is getting comment forms if some related has this options enabled.
Any idea?
I am using a custom post type (it has support for comments)
single-myPostType.php
if ( have_posts() ) {
while ( have_posts() ) {
the_post();
get_template_part('content', 'single-myCustomPostType');
comments_template('', true);
}
}
content-single-myCustomPostType.php
(...)
$loop = wp_get_the_related(get_the_ID());
if ($loop->have_posts())
while ($loop->have_posts()) {
$loop->the_post();
get_template_part('content', 'related');
}
(...)
It is getting comment forms if some related has this options enabled.
Any idea?