This looks flawed:
add_theme_support( 'post-thumbnails', array( 'post' ) );
add_theme_support( 'post-thumbnails', array( 'page' ) );
Do you see the post thumbnail box on pages? If so, you have just overwritten the support on posts with the second declaration.
Better:
add_theme_support( 'post-thumbnails', array( 'post', 'page' ) );
Related Posts:
- How can I get the title attribute from get_the_post_thumbnail()?
- Set Featured Image for Archive templates
- Any official way to create an admin theme?
- How do I create my own admin button and theme settings page?
- How can I add a set featured image function to a theme that doesn’t already have it built in?
- Exclude stylesheet from admin
- How get Themes list via REST api?
- Activate a new WordPress Theme Only for Admins
- How can I show more than 15 themes at a time in the admin menu?
- Theme Development Admin Area [closed]
- 100% width Featured Image Size
- Posts and Pages not showing on admin, but showing in theme
- How to display message (with switch_theme hook) after deactivating My theme?
- How can we hide the parent’s theme url at the child themes details on a multisite?
- Featured images, am I missing something?
- How to switch theme if the current user is admin?
- Recommended Media Size for Twenty Fourteen
- Passing dynamic options from backend to frontend
- Problems to disable the comments for my statics pages
- How to reset a custom theme
- Theme javascript/css 404
- get_the_post_thumbnail() produces different HTML on same arguments
- How to include stylesheet in custom admin using parent_slug
- I made new theme directory, why won’t it show up in admin GUI?
- Migrating a website using custom image tags to use featured images instead
- Is there any way to modify images from a theme using the web interface?
- How do I get the featured image to sit below the header in the twenty nineteen theme?
- Edit box-header on WordPress Dashboard
- Featured images are cropped on index and post page
- Change theme’s thumbnail to cropped WP featured image
- Theme stops media uploader from working
- Featured image on page is not displayed with certain theme: how to debug this?
- How to change background color in the Notepad++ text editor?
- What are all the available parameters for query_posts?
- Does WordPress work without a theme?
- Link to specific Customizer section
- Is it OK to remove theme credits from footer? [duplicate]
- When cropping a header image, retain meta data (i.e. name, description, etc.) from original image?
- What theme is good for posting code? [closed]
- Difference between stylesheet_directory and template_directory
- Adding a Template to the Page Attributes Panel for both Posts and Pages?
- How do you change the theme location?
- How to see files in directories in “Edit Themes” screen
- Set Featured Image programmatically (in admin) with JavaScript?
- WordPress generating 404 on .mp4 file in theme folder
- Why are my widgets not saving when being added to a sidebar?
- Building useful features into your theme
- How to remove “Proudly powered by WordPress” in Twenty Sixteen (2016) theme?
- How do I put my comment form above the comments?
- How can I check for malware in a Theme? [closed]
- Editing theme files and access to the Code pages only to super-admin?
- Edit theme wp_head
- Current theme broken – after server and domain migration
- Theme Advanced Styles in Visual Editor and Paragraphs
- Want to have the Post editor remembering the last editing position
- Enqueue different stylesheets using IE conditionals
- Categories for Pages Not Saving in Admin with Custom Categories Metabox?
- Switch Theme Through Options Panel
- Override parent theme translation on child theme
- Forbidden 403 error, permission to access, unable to read htaccess
- Theme of codinghorror.com
- Weird post pagination url redirect
- WordPress Fatal error: Call to undefined get_header() in index.php on line 15 [closed]
- How to add template to theme in WP
- How do I copy my Parent Templates to my Child Templates?
- What is the WordPress Pinecone sitting on top of? [closed]
- Theme Editor Not Showing
- Pros and cons of using Backbone for WordPress theming [closed]
- Can I create multiple instances of the BuddyPress Activity Stream with separate themes? [closed]
- Making menu link open in new tab?
- Download WordPress.com theme: how?
- Can I rename a theme’s folder and still receive updates?
- Child theme not visible
- How to find a file in WordPress themes [closed]
- Change title slug or separator in WordPress
- How to configure PoEdit to pick up translation string?
- how to remove padding from left and right side? [closed]
- Can i have a single wordpress site to have two themes ( one for pc other for mobiles)
- Translated my theme (translation not showing up)
- How to use get_page_by_title() with qTranslate?
- Changing $before_widget for certain widgets
- wp theme.. Could not create directory
- Free themes for commercial use
- Should a child theme share the same theme options row as the parent, or should it have it’s own options row?
- Multi-level page hierarchy
- Installed theme uses get_template_directory, breaks WordPress on Windows
- How to conditionally display widgetized areas in theme customizer?
- How prevent someone from opening my theme directory
- loss of theme options while site deployment in production
- How to install WordPress theme and configure it? [closed]
- How do I get rid of or change the footer in my child theme?
- Switching a Site to WordPress and Leaving It Live Until Ready
- Categories gone after changing theme / demos [closed]
- Angular integration with homepage
- Edited Child Theme’s “header.php” but it doesn’t appear to change the file
- Own Theme Customizer displays error message when saving, saving still works
- WordPress redwaves-lite theme Comments Quote remove [closed]
- Troubles with Walker_Nav_Menu and closing
- Page has a parent and $post->post_parent returns 0
- How to create different navigation for registered users in WooThemes Canvas?