the_post_thumbnail will echo out the thumbnail so maybe try
if ( has_post_thumbnail() ) {
the_post_thumbnail();
} else {
the_content();
}
Hope this helps
Related Posts:
- Set featured image to archive.php
- Need help with simple “if statement” checks to output particlular CPT data depending on what client uploads/fills out
- How can I remove the “Add New” button in my custom post type?
- How to disable generation of default image sizes for some custom post types?
- Featured Image Panel Missing From Custom Post Type in WordPress 3.2
- Get Custom Taxonomy ID within loop
- How can I add dropdown widget/box to admin post page?
- set and unset the custom field value
- Meta Query “IN” doesn’t work with ACF checkbox filter
- Clean URL permalink for custom post type
- Using ‘strtotime’ function to convert a custom-meta-box to a date-stamp
- WP insert post PHP function dynamically generated Custom Fields
- How can i place Feature Image under title field in wp-admin?
- How to get only one category of custom post type?
- Inserting data into `post meta` table?
- Error after deleting Custom Post Type with a function (no trash used)
- Change admin post thumbnail size for custom post type only
- Change message given when deleting post from custom post type
- How to append element after thumbnail
- I am having a problem with form updating/editing WordPress post on the frontend
- Display custom field of specific post where post title matches variable
- Custom Post Type without an archive page
- Show Different Header on a Specific Post ID
- Custom query to filter posts that have current post as a taxonomy [closed]
- How to change post featured image using a custom field of category?
- Pagination for custom php code
- Received nothing after executing AJAX post function
- Troubles with saving metabox
- AJAX load more for different custom post type loops
- Changing wordpress publication date to ACF date and time picker date not working
- Why are taxonomy terms not saving when using custom meta boxes with radio button taxonomy selectors?
- creat filter with wp_query
- WordPress custom post type permalink rewrite shows page not found
- Categorize custom post type
- Custom post type editor with dynamic selects, one drop down populating a second second drop down not working
- unable to show custom post type featured image
- Function causing the loop display posting more (empty)
- Display latest x posts from all categories in Custom Post Type/Taxonomy
- categories should be available across all custom post types
- Get term name without a foreach loop
- Including all post id’s of a custom post type into an array
- Understanding Post Formats/Custom Post types Etc
- Featured image size in column
- Custom Post not working as expected
- Is it possible to add posts and images (auto resize) for custom post types with a script?
- Show current custom taxonomy
- finding and using post type fields in WordPress
- After creating Custom post type by user delete old one
- Is it possible to use array_walk() to append terms to an array of posts?
- get_post_types() can’t get some of my post type
- How to add new post using a form to categories when categories are using as menu
- Different post title, keywords and description
- post_content is stripping HTML when adding a new post? [closed]
- Querying a custom post type, but not show duplicates
- Menu’s breaking, now showing all page links on site
- Creating on-page options for Custom Post Type
- Post type Echo code is repeating on homepage
- How can I increase the post count for custom post types only?
- How do I call the custom Post Type name and permanent link to my php file?
- Page that lists publications by classifying them by taxonomy
- Is it possible to hide nav menu items only when they are page titles (on specific templates) but not on the dashboard?
- Put featured image under post title in admin area
- Grouping custom wordpress post types by acf value
- Title and URL Error in Breadcrumb Navigation for Custom Post Types
- Assigning categories to custom post types via a front-end form; only works for native post type
- Show code dependant on CPT & category
- Adding featured image to a new post using front-end form?
- WordPress – display relationship between blog posts and custom posts
- when looping through custom post data not appearing
- Getting a Post ID to show its content in a Popup
- How to limit the number of custom posts certain users can publish in WordPress using php script?
- Custom sorting in post columns by ACF Pro Select Field
- Load info from customposttype into template page
- wp_post_delete is deleting all offices
- Disable Sidebar on certain pages
- current-post-parent for custom post type
- Show parent category and subcategory once in while loop
- Having issue on Loading Meta Data From CSV to CPT
- Rewrite URL of Specific Post of Custom Type
- How to get the posts that my following users are liked?
- Display related post content and custom field content
- The most recent post of custom taxonomy
- Custom 404 redirect for a luddite
- Display featured images from custom post type in the homepage template
- Show tags of custom post types in WordPress
- can’t see categories in appearance-menu-categories
- How To Loop Through list with Custom Post Types
- Meta Box not being added in plugin
- wordpress form processing to custom post type not working
- WordPress custom field images not getting inserted into array
- Meta-Box to add multiple items one at a time and on publish save all
- Values inside a custom field to determine which category posts to display
- Posts without featured image using other post’s featured image
- Featured image in admin on custom post type
- Building a List of Posts grouped by custom taxonomy as the section header only to be displayed if at least one post is in that tax
- Custom Portfolio String
- Dynamically change Custom Post Type Template OR Change Permalink?
- Link to larger thumbnail in custom query (with custom post-types)
- Store custom post type with JSON content
- How to Create Grey Background for Product Images on Website Display but Retain White Background on Downloaded JPGs?