Replace the code:
From:
<div>
<?php
$q = new WP_Query(array($item));
if($q->have_posts()) : while($q->have_posts()) : $q->the_post();
the_excerpt();
endwhile;endif;
?>
</div>
To:
<div><?php $post = get_post($item->ID); echo $post->post_excerpt; ?> </div>
Related Posts:
- Remove POST_TYPE from custom post type permalink
- Custom Post Type | Fatal Error on register_post_type()
- How to Get WordPress custom post data in WooCommerce product meta panel? [closed]
- How to Add Custom Taxonomy To Woocommerce Plugin
- Prevent trash/delete action on specific post types
- How to add custom content template part for a custom post type on main query using a plugin
- How do I filter the excerpt metabox description in admin?
- register_taxonomy with multiple object type and update_count_callback
- Redirect after deleting post and keep track of pagination
- How often do you need to register_post_type?
- How to use a dedicated template for the Custom Post Type from a plugin?
- How to load a new template page according to a particular URL?
- Updating post meta for custom post types
- How to register custom post types in a plugin?
- How do I add a custom button to my “edit” list? ( edit.php?post_type= ) beside “Add New”
- How to append element after thumbnail
- Best practice for adding posts in bulk
- How to have the right design for a custom post type without accessing themes
- Set object terms not working on plugin activation
- Get rewrite slug of custom post type in template
- custom post type not showing in menu
- Custom posts don’t work
- How to customize a permalink (URL) structure?
- Adding a custom post type taxonomy template in plugin
- Plugin: register custom post types, child ready and performance best practices
- Addition of custom option panel crashes Media Library & Admin Area
- Custom fields for custom post type
- Redirect to another page using contact form 7? [closed]
- custom post data – how to
- ACF in wordpress
- How can I have different content for different countries?
- post_parent in custom post type
- How to insert data into meta box from another plugin?
- Custom post type’s posts are not showing anywere but in xml sitemap
- Unable to format dates to put in event calendar
- Custom post type in Custom widget – $listItem
- Add custom columns in custom post type browse page
- Validate Custom Post Type fields
- Types plugin custom post add_action hooks
- Convert Custom Table Data Based Plugin To Be Searchable
- how can i show a google map in custom post type
- Is there a (preferable built-in) way to check what custom queries are used in a theme?
- Custom Post Type, Custom Columns List
- Check if theme supports sidebar
- Auto update publish date of CPT Post if default post custom field value match to cpt post CF Value
- How can i display a taxonomy? i have created a plugin and then a custom type. and a taxonomy , also i have register it
- Ultimate Members Default Post Layout problem
- custom post type and user post count shortcode
- Cannot view Custom Post Type no matter what I try
- Restrict Custom Post Type to One Item
- Custom Post Type Front Page Gives 404
- Adding specific custom fields (images) to post excerpt
- Show Post columns to specific users on condition
- Insert custom taxonomy into category query
- Run query on specific admin options page and send results to select field in another function
- Link two different post using there post_id in post meta
- Custom post type that lets users create a set of posts?
- Can’t save custom post type fields
- How to display all custom fields associated with a post type – IN THE ADMIN AREA?
- Update Plugin Without Overwriting Custom Settings
- get_post_types doesn’t work in plugin
- Registering an optional custom post type from a plugin
- Add category slug as class attribute in a link array
- Custom Post Types in plugins?
- Multiple Block Quotes without using HTML
- How to apply order on custom taxonomy and custom meta key on custom post type
- How to delete unnecessary custom post types in the UI
- Set a Custom Post Type as a Homepage
- Is flush_rewrite_rules necessary when creating a custom post type? Why?
- Assign Page Template Within A Custom Post Type
- [Plugin: Posts 2 Posts] Changing display order of connections
- Error after deleting Custom Post Type with a function (no trash used)
- Using posts and postmeta table to store custom Address Book Plugin data
- How to customize admin posts based on the user who is logged in
- apply filters only to specific post listing without check the url parameters
- Dynamically add / duplicate custom meta in custom post types
- How can I make a custom post type sticky?
- Define new user capability for custom post types?
- limit value taxonomy based on previous taxonomy value wordpress
- How to change wp prefix for custom post type only?
- How to handle paged param in post and custom-post-type?
- How does order=asc effect a wp_query (its acting pretty weird in a loop)
- Create metaboxes based on custom post type
- CMB2 metabox create select with list of post from CPT
- Calling a save function from a “submit” button
- Custom post types, disable fields
- Related “custom post type” using “custom taxonomy”
- How do I disable the built-in editor and automatically configure the properties of new pages?
- How to have multiple search result pages in wordpress with taxonomy terms listed
- How to limit the number of custom posts certain users can publish in WordPress using php script?
- Changing CPT permalink
- Error when moving custom post type to bin
- In the admin, how can you list thumbnails instead of titles for a custom post type?
- creating a custom post template
- Excerpts and Custom Post Types
- Get term_id for each instance of custom taxonomy
- Select Menu for Custom post Type does not save
- Synch Custom Post Types (and Custom Fields, Cats, etc.) Between WordPress Sites
- add_filter > posts_where works partially
- How to make a Template page to show the information of different things Shop and Product page?