Dec 13, 2016 | WordPress

Can not re-declare the_post_thumbnail_caption error after WordPress 4.6 update

The WordPress core introduced new function with the name the_post_thumbnail_caption function. Some themes also have functions with same name and multiple occurrence of same functions breaks the themes.

How to handle Fatal error Cannot redeclare the_post_thumbnail_caption

If you’re using premium WordPress theme you should contact with theme developers if they did not handle the issue already. What if you don’t have license version of theme ans still facing this issue?

In this case, We would recommend you to take the backup of website and than navigate through theme’s function file. You will figure out the function with the name the_post_thumbanail_caption. Rename this function with any new name, It could be yourtheme_the_post_thumbnail_caption and your website will stop showing Fatal error Cannot redeclare the_post_thumbnail_caption after WordPress 4.6 update.

If there is some breakdown in functionality of theme you need to get an expert developer or you can drop comments with the problem you’re facing. We would help you to get your website live in no time.

Posted By:
Mohammed Arif
Arif is Development Head at Elicus and has over 10 years experience in the development industry. He is passionate about WordPress. Follow him on Twitter @themohdarif.

0 Comments

Submit a Comment

Your email address will not be published. Required fields are marked *

0 Comments

Submit a Comment

Your email address will not be published. Required fields are marked *

DiviExtended’s Black Friday Sale: Mega Savings + Win an iPad!

DiviExtended’s Black Friday Sale: Mega Savings + Win an iPad!

The Divi Extended Black Friday Sale is On The Horizon! It's that time of the year when Elicus is all set to launch its biggest sale of the year on DiviExtended.com. We are starting the sale early this year and it goes live on November 21st at 12 Noon UTC. The Elicus...

Elicus’ Journey at WordCamp Bhopal 2023

Elicus’ Journey at WordCamp Bhopal 2023

Continuing our love for WordPress and the journey we embarked on more than a decade ago, the team had the opportunity to visit the city of Lakes Bhopal for our next WordCamp event. Being a company that is fully based on products and services related to WordPress it...

How to Detect AI Content Effectively in 2024? Tips, Tricks and Tools

How to Detect AI Content Effectively in 2024? Tips, Tricks and Tools

If you want to detect AI content, consider all measures.  People are smart, and when it comes to AI content, they can go beyond all limits. Every day, there’s a new update or platform launched that provides content sensationally close to human writing, and if you...

How to Use Canva AI Tools? Exploring 21+ Best Design AI Tools

How to Use Canva AI Tools? Exploring 21+ Best Design AI Tools

In the AI world, AI tools for design are on the rise and among them, Canva AI tools are making their mark slowly and steadily.  Using these tools, anyone can design a perfect piece of creativity. It doesn’t matter whether one is highly trained or not; these tools...

Divi Extended
WPMozo
Divi WooCommerce Extended