We’d like to remind Forumites to please avoid political debate on the Forum.

This is to keep it a safe and useful space for MoneySaving discussions. Threads that are – or become – political in nature may be removed in line with the Forum’s rules. Thank you for your understanding.

📨 Have you signed up to the Forum's new Email Digest yet? Get a selection of trending threads sent straight to your inbox daily, weekly or monthly!

WordPress function.php difficulty

Hi Guys need a bit of help with some php code in my word press blog.

Here is the last few lines of my original functions.php file.
return "WEEK( DATE_SUB( $column, INTERVAL $start_of_week DAY ), 0 )";
}
}

?>
I've added the following code to the file.
<?php add_theme_support('post-thumbnails'); ?>
I've placed the new line of code immediately below ?> giving me this:
return "WEEK( DATE_SUB( $column, INTERVAL $start_of_week DAY ), 0 )";
}
}

?>
<?php add_theme_support('post-thumbnails'); ?>
been VERY careful not to leave any blank lines between the old final ?> and the new line.


However when I save it and refresh I receive the following: fatal error: Call to undefined function the_post_thumbnail() in /websites/LinuxPackage04/ba/bi/es/my-domain.com/public_html/wp-includes/functions.php on line 4300


Any ideas as to what might be wrong?

Thanks

Kevin
This discussion has been closed.
Meet your Ambassadors

🚀 Getting Started

Hi new member!

Our Getting Started Guide will help you get the most out of the Forum

Categories

  • All Categories
  • 352.1K Banking & Borrowing
  • 253.6K Reduce Debt & Boost Income
  • 454.2K Spending & Discounts
  • 245.1K Work, Benefits & Business
  • 600.7K Mortgages, Homes & Bills
  • 177.5K Life & Family
  • 258.9K Travel & Transport
  • 1.5M Hobbies & Leisure
  • 16.1K Discuss & Feedback
  • 37.6K Read-Only Boards

Is this how you want to be seen?

We see you are using a default avatar. It takes only a few seconds to pick a picture.