0

When I click on "Tags, Categories, Archive", this appears on page:

Fatal error: Call to undefined function the_archive_title () in /home/u932610063/public_html/wp-content/themes/powen-lite/archive.php on line 20

How should I fix this error?

5
  • 1
    What version of WordPress are you running?
    – Milo
    Nov 1, 2015 at 0:39
  • Thanks for fast respon, I'm using WordPress 4.0.1 here is my Problem ( grahafauzi.de/category/adventure)
    – grahafauzi
    Nov 3, 2015 at 13:30
  • archive.php on line 20 is maybe this line: esc_attr(the_archive_title( '<h2 class="content">', '</h2>' ));
    – grahafauzi
    Nov 3, 2015 at 13:36
  • You should really read the documentation before jumping in and using code/functions/etc Nov 3, 2015 at 19:34
  • Its great... all is Done!!! thank you for this great help. Best Regards,
    – grahafauzi
    Nov 3, 2015 at 20:30

2 Answers 2

1

I'm using WordPress 4.0.1

You need to update WordPress to the latest version. the_archive_title() was added in version 4.1.

1
  • Its great... all is Done!!! thank you for this great help. Best Regards,
    – grahafauzi
    Nov 3, 2015 at 20:29
0

You can use this function intends of the_archive_title()

get_the_archive_title()

the_archive_title() Introduced in wordpress 4.1.0 if your version less then 4.1.0 then use above one.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.