In your code excerpt you have a function to add theme support for post thumbnails but you don’t include a line where you actually run it. Can you confirm that you are also executing wpb_theme_setup() as well as defining it? If it’s the only thing in the function, you could just call add_theme_support( 'post-thumbnails' );
on its own (that is, remove the wrapping function).
The closing ?> is not compulsory in PHP
Related Posts:
- Remove Actions/Filters added via Anonymous Functions
- Programatically add options to “add new” custom field dropdown
- Excluding iPad from wp_is_mobile
- paginate_links() don’t properly work in search.php?
- How can I get $id variable in widget’s form function?
- Use ‘add_theme_support’ instead of ‘add_custom_image_header’ In WordPress 3.4
- Generating Responsive Background Image Sizes in PHP
- Replacing select2 in admin backend for all selects
- difference between add_object_page and add_menu_page
- How to hook into the quick edit action?
- Override a class function to include a custom template
- How to auto-update child posts whenever the parent post is updated?
- I created a child theme and it doesn’t work for some of the css files
- Make WordPress size and name images for Retina.js
- the_post_thumbnail fallback using hooks
- How to detect first visit of a user?
- How to programmatically set a menu to be the Primary Menu?
- Pinterest Integration Using functions.php
- Redirect a list of URLs to another URL, using functions.php
- Override woocommerce wc-class function
- Trying to inject twitter metadata into using wp_head action in functions.php – get_the_excerpt() returns null
- How to hide, and not to remove the attributes metabox?
- how to edit functions.php in a child theme
- Only display link to author social media when it exists [closed]
- Get current page_id before loop, in functions.php
- Menu fallback “menu_class” rendering a “div” instead of a “ul”
- Change Rating range in Link Manager
- Create single.php for specific tag by tag id or name
- function to erase swear words
- Function call via ajax – can’t figure it out?
- How to limit character length in BuddyPress function output [closed]
- Using $themename Variables
- How to add a slide toggle to the Woocommerce-Layout__Activity-Panel area in the orders admin page
- Is possible add icon in title posts only in specific tag?
- Wp_schedule_event functions.php
- How to auto refresh when user change postcode
- Add sequential number to a Gravityforms form
- wp-comment author- url +, email filter hook
- how can I just add to parent theme function(s) instead of redeclaring whole the function
- Can’t generate thumbnail images
- Display tags that only appear in one category
- How to create an onclick event on an image in a post?
- Why does re-using this function not work? [closed]
- using jQuery on only one page
- How to display retweet count and likes in the meta above the excerpt
- Setting a default text for excerpts of a particular category
- Auto Generated HTML source code formatting
- Get Comma Seperated Taxonomy Linked Terms and Last Child Separated By “&” Instead Of Comma
- Possible to hook into Media Library preview File column and use a custom image?
- How to remove a specific word at the beginning of the content and add it to the end of the content
- Programmatically add Yoast meta description after post save
- Woocommerce checkout field
- Warning: preg_match(): No ending delimiter ‘^’ found in
- How to display the_archive_title() and the_archive_description() – “weird” interaction
- Remove Jetpack infinite-wrap
- Create a Woocommerce product widget with category filter
- Remove attachment page for audio media type only
- Where to store credentials used in a function? [duplicate]
- “options.php” not found
- Both the require and add_template_part function are not including the file
- Function that prevents users from uploading photos more photos
- Function to echo (or display?) wordpress tags in the head section
- is_home() not working in functions.php file
- Conditional function for excluding first image from content, not working
- Check if a different page has any attached images
- WordPress comment_form() does not display actual comments
- Message notification for user
- Disable autosave with `function.php` for custom post wordpress?
- WordPress 6.0 upgrade caused my custom function to stop working
- Different image using srcset function
- Save Meta when custom Taxonomy Saves
- Render metabox gallery in frontend
- Pagination not working – FrontPage
- Enable accessibility mode in widget as default
- Fetch ids of live posts only (not posts with other statuses) and change status with a button in candidate dashboard
- Customise the WordPress gallery html layout
- What is the earliest Hook a Script can use?
- Google Analytics – add script to functions.php
- I want to display the sku in the product pages of my EDD website
- Adding new Category does not refresh the backoffice
- How do I make a custom “Read More Blogs” button for my blog page
- Get shortcode attribute value to another function
- admin-ajax.php & my wp-admin folder url showing in header
- WordPress – Custom Nav menu for logged in users – Shopkeeper theme
- Change post count on tag/terms pages to 10
- How to use if (is_page_template (”))
- wordpress function through ajax not being called
- How to assign results to variables?
- Hide certain post types from editors
- Automatically add custom fields (post_meta) to all published posts, hourly, via wp_cron?
- How to mirror exactly the left admin menu on front end?
- Fatal error after changes to functions.php, even with original file
- update_post_meta after form is submited
- Make a table out of meta box
- is_user_logged_in() isn’t working
- Retrive post by tags PHP code
- Should I use `get_stylesheet_uri()` or `get_template_directory_uri()` when calling my CSS Stylesheet?
- Missing argument 2
- WordPress – Notice: Function wp_enqueue_script was called incorrectly
- post_row_actions filter from parent theme not executing in child theme