The effects of alcohol on sustanon 250 leucine for – real weight loss & bodybuilding benefits?
wpdiscus is not wor...
 
Share:
Notifications
Clear all

[Solved] wpdiscus is not working

4 Posts
2 Users
0 Reactions
1,206 Views
Posts: 2
Topic starter
(@wizrd2000)
New Member
Joined: 3 years ago

hi

i've written a template for wp and now i want to use this plugin  

i installed the plugin but  not working in my post page (single.php template)

below is my codes i've used <?php comments_template(); ?> im my code but ....

also i used

<?php get_header(); ?>

<main class="post_style py-3">
	<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
	
	<section class="mt-3 ">
		<?php
if ( function_exists('yoast_breadcrumb') ) {
  yoast_breadcrumb( '<p id="breadcrumbs">','</p>' );
}
		?>
		<div class="container ">
			<div class="row">
				<div class="col-12 col-md-8 p-3 bg-white rounded mt-3">
					<div class="featered_img_post_box">
						<img src="<?php echo get_the_post_thumbnail_url (); ?>" class='featered_img_post'>
					</div>
					<header class="post_title_section">
						<h2 class="post_title">
							<a href="<?php the_permalink(); ?>" class="page_link"> <?php the_title(); ?> </a>
							<p class="meta_post_box">
								<Span>نویسنده مطلب: <?php the_author(); ?> </Span><span>دسته بندی: <?php the_category(' , '); ?> </span>
							</p>
						</h2>
					</header>
					<?php the_content(); ?>
				</div>
				<div class="col-12 col-md-4 ">
					<aside class="post_sidebar_col  mt-3">
						<div class="shadow p-3 rounded post_sidebar_boxes">
						<?php if(!function_exists('dynamic_sidebar') || !dynamic_sidebar('side_menu')) : ?><?php endif; ?>
						</div>
						<div class="mt-3 shadow p-3 rounded post_sidebar_boxes recent_post_sidebar_post">
							<p>
							<strong>		
								last psots
								</strong>
							</p>
							<ul>
								<?php $recent =new WP_Query("showposts=5"); while($recent->have_posts()) : $recent->the_post(); ?>
							<li><a href="<?php the_permalink() ?>"><?php the_post_thumbnail('sidebarthumb'); ?><?php the_title() ?>								<p class="text-secondary recent_post_time"><?php the_time('y-M-d'); ?></p></a></li>
								<?php endwhile ?>
							</ul>
							
						</div>
					</aside>
					
				</div>
			</div>
			
		</div>
	</section>
	<section class="post_comment_section mt-3">
		<div class="container bg-white p-3 rounded">
			<?php if ( comments_open() || get_comments_number() ) :
				comments_template();
				endif;
			?>
		</div>
	</section>
		<?php endwhile;?>
	<?php endif; ?>
</main>

<?php get_footer() ?>

also i used below codes in functions.php but still not works

function comment_support_for_my_custom_post_type() {
     add_post_type_support( 'my_post_type', 'comments' );
}
add_action( 'init', 'comment_support_for_my_custom_post_type' );

i checked all setting that mention in this site 

for other templates( Prepared WordPress )i have no problem but i started to write my template for my own so i need your help

tnk

 

3 Replies
Asti
Posts: 7573
 Asti
Support
(@asti)
Illustrious Member
Joined: 7 years ago

Please check the other points mentioned in this doc: https://wpdiscuz.com/docs/wpdiscuz-7/getting-started/missing-comment-form/

2 Replies
(@wizrd2000)
Joined: 3 years ago

New Member
Posts: 2

@asti 

i've done this page's tips

but still not working...

Asti
 Asti
Support
(@asti)
Joined: 7 years ago

Illustrious Member
Posts: 7573

@wizrd2000,

Please leave a screenshot of the fixing tip 2. That is, we'll need to see the "Display comment form for post types" section:

Share: