the_post_thumbnail();
function is not supposed to be echo
-ed! get_the_post_thumbnail();
is meant for that. Refer to the linked WordPress Codex pages.
Try this instead:
<?php
// Wraps post-thumbnail in li tags
echo ' <li>' . get_the_post_thumbnail('talent-featured-thumb') . '</li>';
?>
Related Posts:
- Where to put my code: plugin or functions.php?
- Custom Post Type Data in Sidebar widgets?
- Including Custom Post Types in “Recent Posts” Widget
- Limit widget to a specific registered sidebar
- Include custom post types in categories widget
- Including a custom post type in the Archives widget
- How to embed form data within the ‘Add new post’
- Add custom post types stats to a custom dashboard widget
- How to create another version of the Category widget?
- ‘Pages’ widget alternative for custom post types?
- Including Custom Post Type posts in a page template contextually (or should I widget?)
- right_now_content_table_end function not working?
- Custom Post Type Loop throws 500 error when used in widget
- How to create Blog Post Specific Widget
- Custom page sidebar using Template dropdown box
- Random image from tag/custom type on sidebar
- Register widget only page is a singular of custom post type
- Widget: Custom Post Type Post Listing Dropdown on Admin Side
- Display Custom Toxonomy In WordPress and theme Widgets category selection dropdown list
- Custom Widget WP_Query problem
- Hide a widget inside a div on specific type of post
- Filter widget outputs
- Set Custom Post Type in Widget Settings for use in Widget
- Want to be able to sign up subscribers as authors
- how to set a WP Plugin’s url
- Why isn’t a list of posts from my custom post type displaying in this widget?
- How to get dropdown instance value in WordPress custom Widget
- Post Query not working
- Methods for development wordpress themes [closed]
- display custom post type in widget aera
- Truncate custom post type content
- How to exclude categories from a sidebar with active widgets in it?
- Replace Content of Sidebar on Custom Post Type
- Custom Page Template – Widgets of wrong sidebar
- Widget area for individual posts (custom post type)?
- How do I get the posts from single page custom post type from a sidebar to display in a page?
- I want to link an author to everything from any post type that they publish on the website
- retrieve custom post image through widget
- Custom post type not being pulled in widget
- Custom post types archive
- multiple custom post type category selection search
- how to override menu widget?
- Displaying database table in backend of wordpress
- Filter CPT based on meta box value using Flexible Posts widget?
- Creating Multiple Admin Widget Page with Calling One Sidebar
- fetch meta fields inside a widget
- Radom post image/link based on custom taxonomy
- empty dashboard for custom role
- Code in custom widget queries all posts, when it should only query the current post
- How to add post type in masonry posts elementory widget
- Post_type doesn’t work for widgets?
- How to display custom message for (Genesis) featured posts if no posts
- How to sort the admin area of a WordPress custom post type by a custom field
- Displaying Custom Post Types In “At A Glance” Meta Box
- How do I require authorization / login to view a specific set of posts / pages?
- How can I include custom post types on a tag page?
- How to Make an admin_notices Message That Disappears Once the User Leaves That Particular Page?
- Unable to save custom taxonomy terms in a custom-built metabox
- Custom Post Type: Set post_title equal to a custom post type field
- I can’t set meta_key in my custom post type query
- How to noindex nofollow custom post type?
- Displaying the first category from a custom taxonomy with get_the_terms
- Get term name and term parent into custom post type permalink
- How do I create an archive page as a including metadata?
- I want to create custom post in which user can share files like PDF & DOCx
- Update postmeta Parent when post_status child change
- Hierarchical permalinks for custom post type and taxonomy
- How do I control the output of a custom post type in the loop?
- Pagination broken by naming conflict between CPT and Page
- Mutiple Select only POSTing 1 value
- Get an array wich contains the post_name of every post that has the custom post_type “pelicula”
- Custom taxonomy (categories) on custom post type return no results
- Custom post type permalink uses archive page to display posts
- Post type Permalink
- Using Wp_Query, Json to add Highcharts series data
- Displaying One Custom Post Type’s Content On Single Post of Another Custom Post Type
- Is there a way to make child posts inherit parent post terms?
- Custom post types category
- Add Class After 4th Post
- Setup page template array in a custom post type
- Display future posts in search
- Custom Taxonomy and Categories
- Excluded Custom Taxonomy Term Posts Displaying in loop
- Convert attribute woocommerce terms (taxonomy terms) in posts of custom post type
- Taxonomy template file not working with a taxonomy that contains a slash
- How might I change the destination of a link?
- Custom Taxonomy page redirecting to 404 page
- Can the wp_posts table have the same slug (post_name) in multiple statuses (post_status)?
- Imported Content Doesnt Show Up On Frontend
- Prevent author role from editing others posts
- How to load more custom type posts through AJAX & LOAD MORE POSTS button
- Add category slug as class attribute in a link array
- Pagination always adding “Next” link when results come from Custom Post Type WP_query
- Rich Custom Field for Custom Post type not saving
- Custom Post Type – Rewrite slug [duplicate]
- How to show selected value in dropdowm menu
- Post content stays the same but permalink changes ?
- Post types disappeared
- Gravity Forms Post method [closed]
- Filter page ID outside the loop and order