I would start by checking that everything is good with the image being saved to the CPT. Inside the loop…
<?php $url = wp_get_attachment_url( get_post_thumbnail_id($post->ID) ); ?>
<?php echo $url ?>
This will hopefully echo the image’s URL… if that is working then you probably have a problem with the loop conflicting with something else on the page.
Related Posts:
- Redirect to another page using contact form 7? [closed]
- Tips for using WordPress as a CMS? [closed]
- Custom Post Type Templates from Plugin Folder?
- How to Remove Certain Screen Options and Meta Boxes from add/edit post type?
- Is it possible to define a template for a custom post type within a plugin independent of the active theme?
- Modify featured image URL at runtime
- How to make a list of companies’ information and display them to user, using custom post types and a custom taxonomy?
- remove custom taxonomy metabox form custom post type
- [Plugin: Posts 2 Posts] reciprocal connections
- Custom Post Type Statuses
- add_meta_box Callback not being called
- Star rating for custom post types [closed]
- How to Make a Custom Grid View
- Get image URL from media library in input
- Way to hook into a sidebar call to replace it with a custom sidebar
- AJAX image upload with a upload progress bar using media_handle_upload
- Converting Attachment to Images?
- wordpress reusable content blocks
- how do i remove posts from a WP_Query so the pagination is right?
- Loco Translate: Custom Post and Custom Taxonomy Labels not translated in wp-admin menu
- Accessing post’s meta data based on user’s click of a post
- Plugin custom post type – Internal server Error
- Is it possible to create Custom Post plug-in?
- List taxonomy terms for post as checkboxes
- When using Simple Fields plugin, how do I pull the information out of the database to display on a page?
- How to make a proper custom post type link
- Matching Chapters to a Custom posts [closed]
- Mq translate plugin custom post type issue
- What is the best way for showing a grid of customer logos?
- How to delete all trashed item in one-go
- Plugin to hide image in excerpt
- Edit Permalink Structure For Custom Post Type or Modify .htaccess?
- How to use template_include hook with form submission?
- Trying to add a page template for my custom post type from a plugin, but it will not display in the template dropdown unless file is in theme
- Custom Post Type – custom form in dashboard
- $pages = get_pages(‘child_of=’.$post->ID); Why arguments are concatenated?
- Scrape a webpage for image and add it to post
- WP-API Custom Post Type json_no_route
- Price comparison table based on Custom Post Type?
- How can I list custom post type categories of portfolio
- Show related posts based of current ACF field name in a single page post (a loop within loop)
- Plugin generated unexpected output – No PHP errors
- “Allowed memory size” problem [closed]
- “After file loaded” action
- Add_image_size not generating correct size
- Including content from legacy app: via plugin or custom content?
- Dictionary-style definition list plugin
- Multiple Post Thumbnails Plugin – Need help with code
- Custom Post Type, Custom Columns List
- Error Metabox Warning: call_user_func() expects parameter 1 to be a valid callback
- how to create hierachial taxonomy and manage under single post type?
- need click to clipboard button on my site
- Revision featured image
- Setting Author on CPT
- Check if theme supports sidebar
- Custom Post Type same name as Category
- Create category for each user
- Adding category base to url in custom post giving 404?
- custom post type plugin error [closed]
- How to display the custom post related blog by category?
- Undefined index: custom_post_template_present
- How to Add call button on a featured image in a wpsite? check the slap king image, there are two buttons on the featured image
- Problem with checked box on wp car manager plugin
- Merging new theme and plugins from development site to production
- $wpdb->insert not working inside save_post tag
- Use AJAX to fetch Current Post Thumbnail for WordPress when Uploaded throughMedia Uploader Frontend
- Is it possible to customize a wordpress post from outside dashboard(Something like site.com/post-type/post/?e=post_id)?
- WordPress create thumbnails on demand
- Automatic set a featured image from the first image’s url (or tag) in the article
- Update (a function) post’s featured image as soon as $image_url changes
- Can’t get or display post thumbnail in wordpress
- Calling an custom field from theme option at the frontend
- Array to string conversion error when trying to POST multidimensional array
- Creating themes using the one Plugin (Toolkit)
- How to add jquery to my custom post type wp plugin
- WordPress list child pages of custom post type
- WordPress custom posttype meta values doesnot save
- Assigning a custom post type to a custom page
- making a glossary with wordpress
- Create custom fields on a post
- Retrieve post thumbnails
- Synch Custom Post Types (and Custom Fields, Cats, etc.) Between WordPress Sites
- get_option include in my adsense
- WordPress Custom post type won’t save properly
- How can I default a new post to being saved?
- Is an Office a custom post type [closed]
- Change the behaviour of archive cpt category and single cpt by plugin, not by theme
- A plugin for software reviews site like this one?
- Snippet displaying LearnDash parent course title with lesson title [closed]
- when i use wp automatic plugin post shows broken images
- Display Custom Post Type and Custom Taxonomy Data on Front End Using Only a Plugin
- WordPress show different custom post type
- How to export post tags from wordpress
- How to access the page without registering in wordpress
- CPT template is not being automatically used single post pages
- Set the title of a custom post automatically by using info from custom fields?
- public custom posts not showing in my wordpress plugin
- plugin translation *.mo file not getting loaded for custom post
- How to provide page_template path in custom plugin using WordPress
- Create CPT on Ajax Call