wordpress reply comment doesnt work with comment form

I created custom wordpress comment area. I want users could reply comments with form below the comment section. when i click on reply button page refreshed and URL changed but after submit form, it sends reply as a normal comment: in URL: http://localhost/%d8%b3%d8%aa%d8%aa%d8%b3%d8%b3%d8%b3/?replytocom=15#respond comments.php: <div class=”post-comments”> <i class=”comment-icon”></i><span class=”any-idea”>دیدگاه ها</span> <?php wp_list_comments(‘callback=mytheme_comment’); ?> <?php if(comments_open())…

Show custom post archive when custom post not specified

I have a custom post type called produce set up in WordPress and a custom taxonomy called produce_category. The URL format for posts in this custom post type is in this format http://mywebsite/produce/%produce_category%/%postname%/. Of course %produce_category% and %postname% get substituted accordingly, a working example url would be http://mywebsite/produce/fruits-and-vegetables/avocado. What I would like to do is…