<?php the_post_thumbnail(thumbnail); ?>
should be <?php the_post_thumbnail( "thumbnail" ); ?>
. thumbnail
is not a defined constant, and the updated version of PHP is no longer converting undefined constants into strings for you.
It appears that PHP changed the “undefined constants” message from a notice to a fatal error sometime around version 8.
Related Posts:
- How to Update an old theme for the latest wordpress version
- Need help with Deprecated: Non-static error when update PHP 7.4 -> 8.1 with Dyad 2 theme
- Updated theme conflicts with updated php version
- cURL 28 error after switch from to brew php 7.2 on localhost
- Permanently remove first image from posts
- reason of splitting theme files to multiple files
- Set the transport of the Customizer ‘header_image’ core setting to ‘postMessage’
- Design view breaking on Pages
- Getting a fatal error while updating
- Get list of WP Updates Across Sites
- Use different javascript files for each page on website
- How to get custom image size for image uploaded in Customizer
- Passing array in add_option()
- Want to create Child theme, but already edited Parent theme css files and some php files
- Adding code to child theme functions.php to override parent theme behaviour doesn’t work
- Create a quick start wordpress installation [closed]
- How should I best target dynamically served content?
- Changing the template hierarchy
- How to Insert Shortcodes into Theme?
- Warning: Use of undefined constant HTTP_USER_AGENT – assumed ‘HTTP_USER_AGENT’ (this will throw an Error in a future version of PHP)
- Set WordPress Default Template
- Custom Theme, Custom shortcode not working
- Customizer: Output default value in Customizer CSS
- WordPress does not load page.php, return 404.php
- Adding custom directory and PHP files in wordpress
- Where in PHP do I move title and meta (date) to bottom of each blog section?
- Show full posts in archive
- WordPress add post format support not working
- Connect WordPress with SharePoint [closed]
- adding custom user input fields in WordPress admin dashboard gives error The link you followed has expired. Please try again
- Move category description below post list in blog
- WordPress Shortcodes.. printf is outputting a random number… Can’t figure out WHY?
- Customizer: active_callback and sanitize_callback incompatibility?
- 404 error when I acess the second page of post-type
- proper way to add css using functions.php?
- What does this mean in wordpress? Easy question
- Showing latest post without 301 redirect
- Translate wordpress date from Italian to English
- Why am I getting a different filename? And how does WordPress load singular.php for both Page & Post? (Fresh WordPress installation)
- WordPress Customizer Default Image
- Do I have anything to worry about when switching to a default theme to test for plugin conflictions?
- How to integrate noimage picture in this code
- Need oop for wordpress theme? [duplicate]
- How to add the sidebar to all the pages except the home page? [closed]
- Header not properly displaying on archive.php
- Save Custom CSS file in the upload folder dynamically?
- Warning: printf(): Too few arguments in helpers.php file
- Environment to do updates to legacy (4.7) version of WP while staying on php 5.6?
- WordPress and PHP Version Upgrade issue [closed]
- home.php show blog posts as grid view
- Amend theme php to include certain category in header
- Override index with a custom PHP page
- Randomize Color Scheme Selection in Theme
- Accidentally deleted php code in WordPress website [closed]
- How can I assign separate stylesheets to different pages?
- How to make sure relative URL works when site is not on root domain?
- Commas in Tag Cloud
- Is there a (offical) way for a theme to deactivate itself and show a message in admin?
- Wrap title and excerpt in a div (latest posts block)
- how to get wordpress page url php code [duplicate]
- Publish button now showing content after saving
- How to put search bar & logo in the “primary navigation” storefront theme?
- Dynamically switch file in get_template_directory_uri() | Function [closed]
- I am having issue in divi woocomerce checkout module. (DIVI theme)
- Styling a category link
- Not able to remove caption shortcode from the content
- remove_action from parent theme using child theme functions.php
- Commenting requires wordpress login, wordpress discussion and post comments tick boxes are checked
- Conditional Banners
- The style.php file inside theme-engine folder has other content on FTP
- How to override theme’s public static function inside of a trait?
- Invalid Argument foreach
- How to Change Site Elements based on referring URL
- how to use 2 index.php file One for mobile and one for desktop
- PHP Error in WordPress Theme
- loop to return tags in woocommerce in alphabetical order?
- need to edit php file of child theme to remove an element
- How to add Open/Close Toggle button into Twenty Fifteen theme for hiding left sidebar?
- user update profile for custom code
- Use Custiomizer to setup meta theme color tag
- Rotating Header Images
- Custom Theme, Editor won’t wrap text (i.e. change width)
- pages disable after wordpress update
- Two theme locations for two menus, but only one is showing up
- Editted Theme Files Get Updated/Reverted Every So Often
- WordPress pagination broken on blog page, working for search results page
- two wordpress sites, two themes, one database, same content
- calling a function from a class in your template
- Showing custom field contents without listing description
- Hide cart when empty [closed]
- WP Knowledge Base Theme bug – Subcategories and Articles, Need to change WP_Query
- Inserting A Feed and Sidebar into an HTML Page
- how to register a second page-template
- Gallery requires a featured image but does not show it in posts/pages
- Catchable fatal error in appcloud free theme by Tokokoo
- How to create and add js and css file when server is not on my PC?
- Link a lightbox thumbnail to a post instead of opening the lightbox
- Using Featured Image as Hero Background in Word Press
- Font Awesome Icons as squares [closed]
- WordPress Plugin Update not working