Your comments.php
is included multiple times for some reason. Look for comments_template()
– maybe it is called too early.
Each time that happens, PHP tries to create the function comment_theme()
again. This cannot work, function names must be unique.
Move the function declaration to the functions.php
. So everything including …
<?php
function comment_theme($comment, $args, $depth) {
// functions body
}
?>
… goes to the functions.php
, and the comments.php
starts with:
<?php
/*
The template for displaying Comments.
*/
?>
<div id="comments">
Related Posts:
- Check if current page is the Blog Page
- Display user’s total comment count outside The Loop
- Facebook Comment Count
- Getting the comment number relative to all the post’s comments
- How to output a permanently delete comment link?
- Guidance with The Loop for CMS
- count number of user comments with a specific comment meta value
- Change comments form title on a page by page basis
- Looking to exclude blog posts from category Previous/Next buttons
- How do I make wordpress comment fields required?
- How do I create comment-reply-button using element not
- How to check if comments are paginated?
- Notify WordPress Site I Have Linked To Them
- Add “last” and “first” to WordPress Comment Pagination Links
- Uncaught TypeError: Cannot read property ‘firstChild’ of null after upgrading to WordPress 5.5
- Replace comment avatars and links at the same time
- Automatically generate Post/Page from searched Database item?
- Adding ads code between comments
- WordPress shows registration link for non logged users
- How do I fetch all comments per post via WP REST API?
- WordPress vs. Custom PHP [closed]
- comments_number display outside specified span
- Trying to implement Ajax comments in WordPress, getting WP error
- How does this WordPress Plugin (Thrive Comments) apply their custom comment sort? [closed]
- Customize Time Stamp
- Show comments menu in dashboard only if the site has comment
- How do I ensure that a piece of hard code only gets called, when on my appointed Blog page?
- Where in PHP do I move title and meta (date) to bottom of each blog section?
- “comments.php” not available after edit in WP administration
- User’s total comment count excluding comments on their own posts
- Pull the content out of a page
- Sending data from custom inputs in WordPress comment form in the admin notification email
- Show wp_die if url form comment not emply
- Why does my callback function not work with this custom filter hook?
- Customize Theme comment template to Insert VoteUp and VoteDown buttons
- How to implement a rating and review system for WordPress custom posts?
- Blog posts repeat
- Ajax load more button for comments wordpress
- edit_comment_link is not showing for comment author
- Limit 1 global comment per minute
- Create Page To Count Comments For Each Post In WordPress Site
- Different post styles depending on category
- comments sorting incorrectly across multiple pages
- Commenting out unwated CSS/scripts in HTML with PHP
- Loading index.php contents which located outside blog folder for post single page
- wp-comments-post.php file returns a blank page
- php function to display commenter username or login
- Genesis framework comments broken?
- check if comment submitted was successful
- Alter required message using comment form api
- Get post id within comments loop
- Custom Pagination is Broken
- WordPress comment submit button substitutes/options
- How to list commenters and days since last commented
- How to add text to the start of all comments?
- Does anyone know all parameters of get_comments()
- Appended comments but they show up above the content instead of below
- get comment data using comment id
- Removing the comment function within wordpress
- Creating a blog on my companies new website using WordPress but I have sidebar issues
- wp_delete_comment takes two tries to delete – then deletes all comments
- Change “No Comments” link to “My String” on Blog Post (Find Snippet in Code or use CSS, PHP Solution) [closed]
- Send a mail to specific address in a custom field when a new comment is made on a specific post
- Using featured image of blog archive page
- Lost in trying to create user database system
- Fetching Initials of the Commentator in the WordPress Website
- get_comments_number() returns 0
- How can I include the user id inside of a shortcode php output?
- Restrict characters in comment section
- How to make blog post entries appear as input form instead of just text?
- Conditionally load class in the comment section of the post page
- WordPress loop is not working
- How to get comment_ID by post_ID in wordpress
- How can I output the slug of a comment author?
- How can I enqueue comment-reply script only on certain page?
- Getting most popular posts based on Facebook comments count
- A Space being added to url generated by custom plugin
- Migrate php folder to WordPress
- Combining fancybox with multiple thumbnail plugin
- Inserting A Feed and Sidebar into an HTML Page
- WordPress – show number of comments for each post in widget
- Arrange Category post manually when displayed
- Trying to fix multiple category drop down
- How does add_action ‘comment_post’ work?
- WordPress blog set up
- Custom action on comment post
- WordPress most commented posts of last X days
- How do I call comments_template(); from a plugin file?
- How to get the rating value of each comment
- Trouble figuring out how to get my button to submit comment
- How to convert my comment.html to comment.php
- How do I remove blog entries from home page Twenty Eleven child theme?
- Guests comment form – prevent duplicate email addresses
- Permissions error when I use my plugin to delete comments in the front-end
- Shortcode Displays 2 times
- Pre_get_comments and orderby comment_karma
- Display posts based on the selected category when no subcategory is chosen
- change Dashboard default page on login
- Remove links to the comments section
- Removing website URL in comments causes misalignment of submit button and tickbox