Use the the_date()
or get_the_date( 'd/m/Y', $post->ID )
functions. This will show only the date of your post type. If you are outside the loop, you need to use the second function I’ve suggested with the post id passed as param.
Related Posts:
- Post ID randomly printing on page
- Use Author Ids or Names to echo different output inside loop
- Filter page ID outside the loop and order
- How do you get the count of posts in an archive page?
- Display Authors Comments on Profile Page
- Custom Post Type Archive Page: Set Posts Per Page, Paginate
- Category as Class for Custom Post Type
- Archive page…limiting posts per page
- Best way to style first post differently?
- How do I write this SQL statement for Posts written in last 24 hours?
- WooCommerce – Show orders for a specific product ? [closed]
- Are Post IDs Unique Across all Post Types?
- How to append element after thumbnail
- Posts navigation in custom post type single.php not working
- Display custom post on home page based on a metabox selection
- Why does using WP_Query inside a shortcode in an elementor page cause the arguments for WP_Query to get malformed?
- Lists Posts from CPT that match the Title of the Page
- How would I create a shortcode to display a custom post within a page or regular post?
- get_template_part() – post-meta not working?
- Make slug as ID Number for custom post types
- Remove duplicated values from a loop
- Filter post by current 2 differents users id
- How to call custom single post?
- How to connect two custom post types with nested loops
- Only show posts from a certain category?
- Custom Post Type Loop throws 500 error when used in widget
- Custom loop with multiple taxonomy queries
- Paging doesn’t work?
- Displaying CPT and custom taxonomy side by side in Bootstrap 4 component
- How to get the upcoming post ID from front end?
- Group CPT posts by custom taxonomy
- Query Post Object in WP Admin
- Display Custom Taxonomy Alphabetically
- Problem: wp_query outputs all images on site
- Custom Post Types strange pagination problem
- Custom post type conditional in loop
- Display related custom taxonomy posts in sidebar
- Display custom post type posts first, then default posts
- Conditional for a Single Post That Belongs to a Category?
- Including all post id’s of a custom post type into an array
- Multiple Custom Post Type queries, how to DRY it up
- Main query not querying any posts in custom taxonomy template
- Using wp_query to modify the loop in index.php for a CPT
- Custom WP_Query doesn’t display all posts
- Query & the_content() is showing in the header
- Listing custom post types on archive page with array
- How to conditionally add Custom Post Type to Front Page
- Pagination not working on custom query on a page
- Loop through posts of only 2 statuses
- Add more than one custom post type to wordpress home page post loop
- get custom post type value in header.php [closed]
- Custom wordpress loop
- Trying to add a class to post links
- Use post in multiple places on a page with multiple posts
- List all Custom Post Type posts excluding certain Taxnomy term
- pre_get_posts works in post type archive but not in single post
- Loop and add Specific Categories and Products Images
- Changing WordPress sort order for returned child pages
- Multiple custom post type queries causing wrong post types to be grabbed in taxonomy + single templates?
- How can I increase the post count for custom post types only?
- Custom post type pagination error
- Add custom post type to query
- Page that lists publications by classifying them by taxonomy
- posts_per_page in custom WP_Query does not override “Reading” settings?
- Custom post type paging return home page
- when looping through custom post data not appearing
- Order posts alphabetically with numbers but some of the posts has numbers in the title
- Multiple Loops In Tabs Only Displaying First Loop
- Add extra elements to the_post in a custom post_type
- Custom Post Type has wrong label and is not found when called by a loop
- Combine multiple separate lists into one
- Error in the page of a CPT file in WordPress
- get_post_meta not working with variable as a post_id for dynamically get the postid
- List all posts associated under custom taxonomy
- custom post type single page
- Custom taxonomy template for custom fields loop [closed]
- How to show terms used only for particular custom post type. Filter creation perpose
- 2 custom posts types, in their own columns, one pagination for both
- Custom post types not displaying per category
- How to show Y number of custom posts after every X normal posts?
- Custom post type with custom taxonomy permalinks
- Pagination on custom post types
- How to get past and upcoming post by defining date in custom field?
- How to query all custom posts of a certain type and checking what category they have
- Post data in separate divs with incrementing class using WP_Query
- Redirection loop error after login from a custom post type post
- How to loop custom post type posts by author?
- Inserting random posts
- loop through custom post-type with two meta_keys
- Loop to pull content from parent element in custom post type [duplicate]
- Post_type doesn’t work for widgets?
- How do I correctly query posts from a post ID?
- display custom post type from register taxonomy
- How to exclude certain portfolios from a loop
- Custom post type and have_posts() return empty result
- why does my post loop break the page?
- How to create custom page templates with default page layout framework?
- display all posts in current category
- WordPress search results grouped by post type
- How to print different informations for different post types inside The Loop?