Try this code
<?php $image = get_field('team_members_page_image', 'option'); ?>
<div class="post-hero-image archive-header" style="background-image: url('<?php echo $image ?>')">
Related Posts:
- WordPress custom post type archive with description
- Custom Post Type Settings page, choose page to display archive
- Custom taxonomy template not working with simple loop. Multiple CPT using the same taxonomy
- Custom post type is showing custom home page, not archive page
- CPT archive admin menu label
- Custom post type archive page blank
- My archive-posttype.php template is not loading
- Custom Post Archive is not working
- How to integrate single and archive templates for custom post type in any WordPress theme
- ACF for custom post type archive pages: which hook to use?
- Custom Post Type Archive template not being called
- Custom Post Type with Configurable Sidebar via ACF
- Is possible register two archive pages for single custom post type?
- How to set a ‘page’ as parent of a custom post type?
- Archive page of CPT’s custom Taxonomy
- Finding the CPT archive template source
- 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
- Making a archive gallery page for a custom post type which already has an archive page
- Pagination not working only on Archive-Name.php using new WP_Query
- WordPress CPT archive page display sticky post first and then display the rest of the posts in same Query
- Made a Custom Post Type using ACF. Via the dashboard I cannot see the view button to see the post
- Loading custom page template via plugin
- Page is defaulting to archive page and not designated template
- custom post type archive page url to point to Page permalink
- Add Settings to Custom Post Type
- Custom Post Type Works but Still Shows “Page Not Found”
- I can’t set meta_key in my custom post type query
- Query by 2 values of a repeater ACF field
- Archive page for taxonomy of custom post type
- Create Custom Post Type Archive Page with Sub Categories Navigation Sidebar
- Show ACF field from custom taxonomy and display on the single template
- Custom query variable – get wordpress to redirect to nice permalink url
- Show custom field from custom taxanomy term on custom post type
- add_rewrite_endpoint() and Custom Post Type Archive
- Add custom post type archives to search results?
- Second Custom Post Type Archive
- Rewrite URL for only archive page (custom post type)
- How to create an array for a CPT post ID to use in an IF/WHILE statement
- Archive slider for CPT
- Custom Post type with ACF in REST API, how do I get those values?
- is_main_query() not working for WP REST API
- Create 3 Level Relations with ACF and WordPress
- Archive template for custom post type only lists first 10
- Set up Custom-Post-Type Author Archive
- Custom post type templating problem
- WP_Query to select custom post type with Advanced Custom Fields (ACF) date
- Bulk Update Custom Fields for Custom Post Types
- Why is my site using index.php instead of archive?
- Using advanced custom fields from one custom post type in another custom post type / using nested shortcodes
- Single post with a Custom Post Type returns 404, when archives of the CPT work correctly
- Creating a Custom Post Type
- Custom Post Type slug same as page name
- Paginate_links in custom post type template
- Adavnced custom fields relationship query plus query inside
- Limit the Title Length on Custom Post Type Archive Page to a Set Number of Characters
- Which Template Page Should I Use?
- How to hyperlink content from archive page with custom post-type
- Custom post type showing same Post on all Pages
- Pagination doesn’t function properly for archive of a custom post type set as the front page
- CPT Archive pre_get_posts not working?
- How do I show a link or ‘Read More’ button on a custom field excerpt when it is less than the word limit
- Removed custom post type archive page shows blog page
- meta query not retrieving posts
- Make Next and Previous on single-$posttype.php use the same order as archive-$posttype.php
- CPT archive page – show one post from each taxonomy term
- Custom front-end form for adding post – Category problem
- Displaying all posts by category and showing content on click
- Show custom post type event if current day using ACF
- Filter posts by their related field’s custom field
- If ACF Post Object post has custom taxonomy term…
- Permalink URL connection between two custom types
- Show specific posts with WP_Query using ACF Post object
- Autofill advanced custom field with user data
- Advanced search form with multiple custom fields
- Custom post type option page template
- How to get a custom post type archive paged when using a custom field for post sorting?
- Iterating over custom post type archive returns incorrect first ID
- Can’t pick up a field created with Advanced Custom Fields
- Get Non-Paginated Index of Post in Paginated Query
- Remove the “View” Link in Post edit Admin
- CPT archive as home page
- using ACF datepicker to filter posts on a page
- How to display the FAQ Archive page in my menu
- How to query the content of a specific custom post type?
- How can I set up the URL for a category archive for a custom post type?
- Taxonomy Query of Custom Post Displays Archive Instead of Posts
- Create a Page Templete to Display Table Of Content for Custom Taxonomies
- ACF – Query relationship without ID
- ACF Field to set Publish Date – Post Duplication upon Update
- Getting ACF relationship field information
- Custom Post Types using wrong template (index) instead of archive-{type}.php – previously worked as expected
- Show custom post type on post category page doesn’t work / breaks navigation
- On archive.php show loop for child categories if they exist or posts if they don’t, on custom post type
- Custom archive URL as a subfolder of the custom post type slug
- displaying ACF Repeater Fields in Backend sorted by a subfield