Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9271069
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T15:31:36+00:00 2026-06-18T15:31:36+00:00

Currently, I’m using a WordPress theme that is built on Foundation . However, the

  • 0

Currently, I’m using a WordPress theme that is built on Foundation. However, the theme doesn’t have its own comment.php file and it’s currently using the soon to be deprecated comments.php from wordpress\wp-includes\theme-compat folder.

So what I did is to copy/paste the latest comments.php file from the TwentyTwelve theme folder into my current theme folder. However, this results in an error:

Warning: call_user_func() expects parameter 1 to be a valid callback, function 'twentytwelve_comment' not found or invalid function name in C:\xampp\htdocs\wordpress\wp-includes\comment-template.php on line 1334

…since it’s not properly wired up. What should I do to get the comments.php to work properly?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T15:31:37+00:00Added an answer on June 18, 2026 at 3:31 pm

    TwentyTwelve uses a function of its own to format comments– twentytwelve_comment. In the file you copied– comments.php— you should see this line:

    <?php wp_list_comments( array( 'callback' => 'twentytwelve_comment', 'style' => 'ol' ) ); ?>
    

    That callback is to a function that doesn’t exist in your theme, since it is defined in TwentyTwelve’s functions.php and not yours. You can…

    • Remove the callback– this part 'callback' => 'twentytwelve_comment',. It is optional. WordPress will use a default formatting function– actually a method of the Walker_comment class. Its a bit hard to find. 🙂
    • Copy TwentyTwelve’s callback function to your theme; don’t do anything to disguise where you got it
    • Create your own callback
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Currently I have this code: <?php echo '<meta name=robots content=noindex>'; $arr = json_decode(file_get_contents(http://media1.clubpenguin.com/play/en/web_service/game_configs/ paper_items.json),true);
Currently I am re-vamping some code that I currently have written something like this:
Currently I have two projects that are separate from one another. The first is
Currently I am creating VBA Macros for Excel and recently have started using UserForms.
Currently we are using a process that tags a code base as production code
Currently, I have several queries that need to run in order (some create temp
Currently where I work we have the following set-up (for ASP.NET web-development) using Git
Currently, I have a Rails 3.2.9 Engine which is using sass-rails . When I
Currently i am using the below .htaccess for removing the .php extension RewriteEngine on
Currently, I am writing a MiddleWare application that synchronizes information between and accounting application

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.