Your problem was the & which WordPress cannot support as is. That is because & is used as part of a URL to join query vars together. Like this:
example.com/file.php?foo=bar&baz=zoo
Also, as pointed out in comments file names have to follow the naming standard. Which is clearly laid out in the documentation.
The format is archive-[slug].php
That’s why when you renamed the file it started working.
Related Posts:
- Loading External Scripts in Admin but ONLY for a Specific Post Type?
- Set posts of a custom post type to be private by default?
- register_post_type sort order by title by default
- Custom post types – Use post_id in permalink structure
- Rewrite custom post type rss feed links
- Populate Taxonomy from Custom Posts
- Order users by number of posts
- Show related posts on single page by custom taxonomy on custom post
- How do I redirect all 404 errors of a specific post type to another URL?
- Priority of Meta Box for Custom Post Type
- Using previous_post_link and next_post_link to wrap around post sequence
- Same base slug for CPT post and CPT taxonomy terms
- how to make custom posts sticky? [duplicate]
- Custom Post Type, Two categories, Two columns with Pagination
- Replacing the title in admin list table
- Get URL for specific post type and current tag
- How to set custom post type as post title to avoid ‘Auto Draft’
- Parent page for CPT
- Unable to get wp_redirect() working after adding a CPT via the front end
- How to validate custom fields for a custom post type before insert?
- Custom Post Type slug same as page name causing a conflict
- Formatting custom meta box date from YYYY/MM/DD to a more readable alternative
- Custom Post Type “Event” with custom permalink structure
- Prevent authors from creating new posts of specific custom-post-type
- Why is my custom loop not filtering correctly nor paginating?
- Display types of posts in edit.php instead of All, Published, Scheduled and Draft
- Custom post types with custom directories
- How to associate two different post types (think Book and Chapter)
- How can I get the first 50% of all posts (within a custom post type)?
- Separate comment section for post type in dashboard
- GravityForm: Populate Dropdown with custom post type [closed]
- get_terms showing all categories instead of the ones assigned to a specific post
- Does WordPress limit the length of slug names for Post Meta or Terms?
- Creating select dropdown with parent-level custom post types
- Confusion regarding Nonce & using it in Custom Columns for Saving Checkbox Value to Post Meta
- CPT Group by Date metabox Value
- How to add a custom taxonomy to show up in a custom post type menu?
- Replace text in post from cvs
- Admin search ACF relationship
- With two custom post types, how to make one a child of the other in the admin menu?
- Editing a list of several fields
- Custom post type: check permissions and validate nonce
- Custom date changer post_date => future – missed schedule error
- Selecting a post in Dashboard
- WordPress sort search results by custom order
- Can one create multiple Custom Post Types with a for loop?
- CPT Validation to not show “Post updated.”
- Translating custom post type metaboxes [closed]
- Get Tags by specific Category of Custom Post Type
- How to sort the admin area of a WordPress custom post type by a custom field
- Listing all term items alphabetically / sorting loop
- Single page not working for custom post type
- Custom Field values not Showing in Edit Page of Custom Post Type
- How to make WP_Query not to show irrelevant posts?
- Display custom post types in wp_list_pages
- How to list tags from custom post type attachments?
- Two column layout with alphabetical ordering
- Can anyone clarify difference between archive-{posttype}.php, type-{posttype} and date.php?
- Custom post type index (maybe using get_template_part)
- Custom post type menu
- gutenberg message
- How to sort a WP_Query by a custom field AND ALSO filter by a different custom field
- Return number of all custom posts type by author in all statuses
- Print all the tags from a custom post type
- How to organize custom post type list by year?
- How to add and display custom content that is not a post
- does wp_insert_term link the term to a certain post ID?
- Ideas to connect external database table to wordpress posts as custom field source
- CPT structure questions
- Custom post type category permalinks and archive pages
- All in one calendar custom post type query doesnt work as expected
- Navigate by Tags inside a custom Post Type
- add_filter get array data before display in custom post_type
- WordPress Custom Post Loop
- programmatically generated custom post type is created more than once
- How to show posts of the same category on a page?
- Button link display in shortcodes using custom field in ACF
- Peepso: Add extra data field (custom post meta) to postbox
- Create posts inside CPT post
- wp delete duplicate entries of custom post types every 15 minutes
- Can I manage current & past editions of an annual event with a single WordPress install?
- How to hide sub fields in a field group and also the entire field group if the answer selected is “no”
- Taxonomy to Post Type. Every Taxonomy Item can be Producer or Developer
- WordPress Front-End user restricted taxonomies
- Template hierarchy changes when custom post-type permalink leverages custom taxonomy
- do action inside a class is not working
- Edit post meta direct from post.php?
- Custom Post ‘Post Per Page’ Crashing Page?
- Create an additional template page for every term taxonomy
- Custom Post Type Not Displaying Correctly
- How to solve performance issue caused by custom post type overview with 20k+ custom taxonomy terms
- Query Distinct Taxonomies of Custom Post Type
- Excerpt for each post type and for is_front_page
- Show taxonomies from specific CPT
- Custom metabox value not saving
- Change the text on the Publish button
- Loop through multiple custom taxonomy terms and display posts for a custom post type
- strange conditional tag behaviour [duplicate]
- Comments are not working on Custom Post Type
- Delete old thumbnail when updating new