If you are using a custom loop. Please use $query->post to get the post object.
Related Posts:
- Make Two Views of Post Type Archive At Two URLs
- Showing only future posts in archive based on custom field date
- How to remove current year from wp_get_archives
- Archive template
- Archive list for custom post type categories
- Check if is post type archive and in category
- Not able to see CPT archive template
- Create Archive Page with Visual Composer
- Add archive/category results to single post page
- Not able to see archive page of custom posts
- Archive Custom Post Type
- Custom Post Type archive (archive-{post-type}.php) is not working
- How to display archive page posts based on author_id
- Limiting the Archive page to posts posted by particular author
- Using WP_Query how can I show events (a custom post type) that are in the future?
- Archive-Custom-Post-Type order by Event Date, ASC, and hide events that have completed
- What code do I “comment out” to remove the loop from this Custom Taxonomy
- Group Archive list by posts tag
- Custom Post Archive – display page 1 differently then subsequent pages
- CountUp timer for custom post
- Custom Post Type Archive – archive.php is present, but it is not being used
- Custom post type archive url when post type has archive string
- get custom post archieve by month
- Customing Annual Archive plugin
- WordPress Rewrite Url with arugments
- How to link to an archive-special.php from a custom front-page template?
- Archive page for custom post type shows regular posts, too (by category)
- How to create archive child pages with good Yoast SEO meta?
- Annoying “JQMIGRATE: Migrate is…” in console after update to WordPress 4.5
- How to remove custom post type archive
- How to use a custom post type archive as front page?
- WP_DEBUG is not set, but I’m still getting warnings
- Custom Post Type Archives by Year & Month?
- Get custom post type slug for an archive page
- Create a custom archive page for a custom post type in a plugin
- How to pass parameters to admin_notices?
- Custom Post Type Settings page, choose page to display archive
- Adding a menu item for a Custom Post Archive
- Custom Post Type Archive Page not showing
- Is there anything like admin_notices for front end?
- Adding custom post type archives to a WordPress menu
- How to set a custom post type to have viewable future posts
- Custom Post Type Template – Archive
- Page Template as Custom Post Type Archive
- Custom post type yearly/ monthly archive permalinks
- How to stop showing admin notice after close button has been clicked
- Can’t get post id on page that is a custom post type archive
- get_the_ID() gives notice in 404 page
- Hide php Notices in Dashboard
- Meta_Query as a way how to setup CPT permalinks – is it a good thing?
- How to rewrite slug of custom post type archive page
- How do you create an archive for a custom post type from a plugin?
- pre_get_posts with tax_query causes empty result
- Proper way of making custom post type landing page or archive page
- Custom Post Type Archives by Date with Custom Permalink
- Sort Custom Post Type Archive by Taxonomy Term [duplicate]
- How to Make an admin_notices Message That Disappears Once the User Leaves That Particular Page?
- How to customize post edit notices
- How to List All Custom Post Types Names (Not Posts)
- How to seamlessly redirect between different archive and singular slugs?
- Change title in head on Archive page
- Archives for custom post type based on a “date” meta value
- Custom Post Type Archives with 0 Posts Redirects as 404
- How to filter custom post type archive by meta value
- WordPress admin notice in plugin function
- What are the advantages of using a custom post type archive?
- register_sidebar notice [closed]
- Page is defaulting to archive page and not designated template
- custom post type archive page url to point to Page permalink
- “Edit” option for custom post types archive page
- Undefined property: stdClass::$labels in general-template.php post_type_archive_title()
- Change number of posts to show on Archive page (custom post type)
- Add custom post notice after post delete
- Custom Post Type archive as front page
- Better to use a post type archive, page template, or shortcode for generating a highly configurable CPT archive?
- wp_logout_url() – WordPress Failure Notice
- Custom Post Type Archive in Sub Folder
- Get monthly archives for custom post type
- Is it possible to remove the posts_per_page limit on a specific post type?
- Add Settings to Custom Post Type
- admin_notices after register_uninstall / deactivate_hook
- Is it possible to have an index page for taxonomy term for each custom post type it is assigned to?
- Custom post type permalink structure with the category also acting as an archive
- How to get_queried_object on multiple objects?
- Custom Post Type Works but Still Shows “Page Not Found”
- Assign Page Template Within A Custom Post Type
- Custom Post Type / Taxonomy Slug / Post Title with post type archive
- Rewrite custom post type url’s adding meta box values
- I can’t set meta_key in my custom post type query
- Hide child term posts on parent term pages
- Posts per Page on custom Taxonomy Template
- Compare 3 custom fields and sort by oldest
- How to group by taxonomy on Custom Post Type archive
- Post type archive page not working
- Adding Sticky functionality to Custom Post Type Archives
- Output yearly archive within a page
- Is it possible to set a option, and then redirect to another page directly from a admin notice link?
- paginate function in archive for custom-post-type
- Adding custom post types to archive.php
- Custom Post Type – Archive page title