Solution in my case:
I created a custom query and prepended that query to the loop. E.g.:
$args = array(
'post_type' => 'services'
);
$services_query = new WP_Query( $args );
<?php if ( $services_query->have_posts() ) : ?>
<?php while ( $services_query->have_posts() ) : ?>
This ended up returning me the ID that I needed to get my first feature image correctly. Unsure if there is a better way to approach this?
Related Posts:
- Custom Post Type Settings page, choose page to display archive
- How to get the custom post type from an archive page?
- Loading custom page template via plugin
- Pagination problems with multiple custom post type archive pages
- Custom taxonomy template not working with simple loop. Multiple CPT using the same taxonomy
- WordPress custom post type archive with description
- CPT: archive-cpt.php VS custom page template
- Custom post type and taxonomy permalinks – Structure
- Navigation menus not showing because of custom post type filter
- Rewrite URL for only archive page (custom post type)
- Archive slider for CPT
- How To Create A Custom Taxonomy 404 Page
- Archive template for custom post type only lists first 10
- Change archive page template using pre_get_post
- Custom post type is showing custom home page, not archive page
- Isotope Filtering with Bootstrap Tabs – Custom Post Type Query Loop in each Tab (Have to click twice to filter)
- Why is my site using index.php instead of archive?
- Custom post type archive page blank
- My archive-posttype.php template is not loading
- Custom Post Archive is not working
- Which Template Page Should I Use?
- Display custom post types in wp_list_pages
- Pagination doesn’t function properly for archive of a custom post type set as the front page
- How to integrate single and archive templates for custom post type in any WordPress theme
- Custom post type permalink uses archive page to display posts
- Taxonomy template page not working
- CPT with its own category and tag url
- Custom Post Type Archive template not being called
- Can’t replace the default sidebar with a custom sidebar on Custom Post Type in Genesis
- How do I override the default number of items to be listed on an archive.php page? [duplicate]
- Best way for a plugin to define a custom post type archive template?
- Is possible register two archive pages for single custom post type?
- Archive page of CPT’s custom Taxonomy
- Pagination links for custom post type shows correct number of links, but links result in Page not found
- Finding the CPT archive template source
- ACF Pro Accessing fields on a Custom Post Type
- Multiple Custom Post Type in Taxonomy Archive Causing White Screen
- get first limited words from a custom post in the archive page
- Show index and not the archive for “Dog Custom Post” with default slug
- Custom post type archive page not showing on archive-posttype.php
- Custom post type with two templates
- How do I make my archive page look like popular reviewing sites (e.g., Polygon and Gamespot) [closed]
- Display custom post type archive on page.php template
- Multiple archives for cpt, taxonomies, terms
- Making a archive gallery page for a custom post type which already has an archive page
- Get Non-Paginated Index of Post in Paginated Query
- How to assign custom post template to its custom taxonomy terms
- How to display custom post types AND regular posts separately on a shared taxonomy archive?
- Archive templates based on taxonomies
- Organizing Custom Post Type Archive Template
- listing custom post type category page
- Two different archive pages showing the same content
- Archive custom template from search
- how to pass args for archive.php query?
- Pagination not working only on Archive-Name.php using new WP_Query
- How to make posts under custom post type not generate a URL / post
- WordPress CPT archive page display sticky post first and then display the rest of the posts in same Query
- Use template_include with custom post types
- Combining Multiple Taxonomies in one URL
- Numbering sections and block-level elements in wpautop(); WordPress as CMS for long-form writing;
- ‘No pages found’ in Dashboard after registering custom taxonomy
- Issue with saving custom post type when editor is removed
- How would I leverage custom Taxonomies in this scenario?
- Using custom post types in submenu + custom title
- Dynamic dropdown custom post list based on dropdown selection
- Excluding post type from WordPress link builder
- 2 different post->IDs for single page load only in Firefox
- How to show custom (checkbox) field value in admin post list?
- How to Duplicate (multiple meta box)?
- Custom Post Type: Upload Multiple Images
- How Do You Add a Second “Posts” Menu to Your Dashboard?
- CPT issue: Warning: call_user_func_array() expects parameter 1 to be a valid callback
- How do I correct an incorrect permalink?
- Is $object_type truly required with register_taxonomy()?
- Query & Order posts by custom fields
- output custom post types on front-page.php
- WP_Query orderby and tax_query
- admin-ajax.php GET custom-post titles
- How to see posts in taxonomy endpoint
- Graphql: Unable to query (where:{author}) for custom post type
- Dynamic assign a custom template to custom post type posts
- Custom Post Type with modified permalink structure results in 404
- Custom Post Type Pretty Structure
- Displaying information from custom field on custom post type
- Custom post type archive – error in nav-menu-template.php
- How to use taxonomy term as permalink folder
- returning the currect URL for nested posts
- Custom post type data not displaying If I select the category from the dropdonw
- How to use posts as tabs in a custom page?
- Custom post types saved as basic post
- Back, Next, and Previous links for the REFERRING term archive
- Query posts by multiple custom fields
- Get category list & taxonomy list from different post type using post id?
- Remove Custom Capability
- Is it possible to add query parameters on the archive page?
- Custom sortable pages on custom post type
- Remove ?preview=true from the address of custom post types
- Custom Post Type to Upload Images
- Why isn’t page attributes dropdown not showing up in a custom post type
- Query order by a numeric ACF field