Index and single post comments link not changing
-
Hello,
Me installed Disqus on my WordPress. I have big problem. On my index page and single post page the comments count link not changed, it still /#comments, not /#disqus_thread. But on category/search/tags page everything is okay.
I’ve looked to my single.php and found there:
<?php if (get_option('polished_postinfo2') ) get_template_part( 'includes/postinfo'); ?>
in my includes filed i found postinfo file. there:
<div class="post_info"> <?php if (!(is_single())) { ?> <?php esc_html_e('Posted','Polished'); ?> <?php if (in_array('author', get_option('polished_postinfo1'))) { ?> <?php esc_html_e('by','Polished'); ?> <?php the_author_posts_link(); ?><?php }; ?><?php if (in_array('date', get_option('polished_postinfo1'))) { ?> <?php esc_html_e('on','Polished'); ?> <?php the_time(get_option('polished_date_format')) ?><?php }; ?><?php if (in_array('categories', get_option('polished_postinfo1'))) { ?> <?php esc_html_e('in','Polished'); ?> <?php the_category(', ') ?><?php }; ?><?php if (in_array('comments', get_option('polished_postinfo1'))) { ?> | <img src="<?php bloginfo('template_directory'); ?>/images/comments.png" width="20" height="18" alt="Comments"/> <?php comments_popup_link(esc_html__('0 comments','Polished'), esc_html__('1 comment','Polished'), '% '.esc_html__('comments','Polished')); ?><?php }; ?> <?php } elseif (is_single()) { ?> <?php esc_html_e('Posted','Polished'); ?> <?php if (in_array('author', get_option('polished_postinfo2'))) { ?> <?php esc_html_e('by','Polished'); ?> <?php the_author_posts_link(); ?><?php }; ?><?php if (in_array('date', get_option('polished_postinfo2'))) { ?> <?php esc_html_e('on','Polished'); ?> <?php the_time(get_option('polished_date_format')) ?><?php }; ?><?php if (in_array('categories', get_option('polished_postinfo2'))) { ?> <?php esc_html_e('in','Polished'); ?> <?php the_category(', ') ?><?php }; ?><?php if (in_array('comments', get_option('polished_postinfo2'))) { ?> | <img src="<?php bloginfo('template_directory'); ?>/images/comments.png" width="20" height="18" alt="Comments"/> <?php comments_popup_link(esc_html__('0 comments','Polished'), esc_html__('1 comment','Polished'), '% '.esc_html__('comments','Polished')); ?><?php }; ?> <?php }; ?> </div>
Any suggestions, what should i change?
Thanx.
- The topic ‘Index and single post comments link not changing’ is closed to new replies.