Answering my own question here, for anyone who might encounter this problem in the future.
The cause for the right templates not loading was having uppercase letters in my template filename. Changing all characters in the filename to lowercase resolved the problem, and the templates are now being applied as they should.
I’m still unsure about what is the exact cause for this problem, especially as the uppercase filenames still worked on my local WAMP server, but were broken when moved to live server. I tried to do some Googling, and apparently it might have something to do with different PHP versions treating filenames differently or something along those lines. But like I said, I couldn’t find anything conclusive.
Related Posts:
- Post/Page Preview Template
- Is it possible to have two different previews of a post (ie. two templates for one post)?
- Display page content AFTER a loop of posts
- Using custom post template
- custom post template file not shown, instead all the time 404.php
- Tell WP to use a specific template file in posts
- Create a custom posts page
- add_rewrite_rule and template redirect not working
- Custom post type template not called
- Adding The Post Template Dropdown to WP-Admin
- custom post type single page template not working
- Custom Post Types, slug, archive and SEO plugins
- Search Custom Post Type Pages and Custom Fields in 2 Dropdowns?
- Using single.php from plugin folder instead of default template folder
- How to get Images included in Post
- How to disable drafts?
- how to enable different number of revisions for different blogs when using WPMU?
- Custom Post Type Pagination Doesn’t Work in WordPress 3.4
- Unattaching images from a post
- Post from front-end only by logged in users, form posts as “posted by:
- Allow role to delete posts but block him the wp-admin
- Why does `url_to_postid` return 0 when testing `page_for_posts` Page?
- How only display all post related to category
- Using Custom Posts with Metaboxes and Drop-downs
- How to show featured image in custom post type dashboard post page
- Archive Page for Custom Post Type is not Working
- Posts vs. Pages
- Dynamic carousel on individual posts
- How to support custom templates on a custom post type?
- Filter Custom Post Type by Category with Ajax
- How to add pagination in between post and comments?
- Print all the tags from a custom post type Please
- Display multiple custom taxonomy values on single custom post types page?
- Show posts by a custom post author
- Custom loop pagination links not working
- wp-cli post create & media import issues
- Search results posts_orderby and ID
- Unable to restore from backup – how to obtain old blog posts?
- Getting value from get_post_custom
- Set Default Category to Username
- show custom post type category dropdown sorting result on same page
- Custom Post Type Rewrite To Include Parent Page(s)
- How do I insert a post with custom post type and relate it to a custom taxonomy?
- Dynamically switch template on click
- Custom taxonomy archive page problem
- How to make different custom post layouts?
- Two Custom Post Types with Identical Articles Competing for the same Slug
- Custom Post Type archive
- Is it possible to give the user the chance to select between two single template files to use in a post?
- How to identify and hide/remove an element from a WordPress page [closed]
- if in category but only with post meta
- Auto delete posts based on content text
- Custom home page with full post for first one only
- Can WordPress handle following functionalities?
- How do I disable the “by author” hyperlink on posts?
- Custom post type slideshow background images to insert in a plugin
- Trying to exclude custom posts based on date, while sorting by custom field
- Changing permalink of WordPress
- Hook save_post_cpt not triggered when custom fields are modified
- Alt text attributes not showing over portfolio images
- Related post not showing table of content
- Adding an option to post editor to show a site disclaimer or message
- Added a ACF field to custom page and want the results to show as a column in admin
- WordPress Pods Custom Post Type – separate Media Upload folder for each custom Post Types
- Template for displaying CPT / Taxonomy URL issues
- Put page on Archived statut after end of publication date
- post and page and custom post type
- Single Sidebar; multiple templates! How?
- Loop through taxonomies and loop through their terms (Newbie question)
- My posts page is missing the page title
- Hiding title of selected post without plugins
- Add Categories To Custom Post
- Is it possible to query a category with specified posts?
- How do I set content in my pages so that it remains permanent while blog posts are added below?
- Custom post type – Loop out in random order but same 15 to appear first… still random
- How to use Categories of custom post type
- Page 2 has no posts?
- Creating widget – ask for selecting a post in the admin panel
- issue in wordpress auto delete post and redirect to another 1
- wp query custom orderby not custom field
- Customizing individual images on posts
- Custom Single Post Type not referring to single-post-type.php File
- My blog “page” used to show a list of posts, but now it’s just showing the page content?
- Custom template for different post types
- How to modify specific parts of a post content in WordPress
- Include post on external custom site
- Run Jquery Script after delete post in front end
- Posts page template: How can I edit the markup for this?
- “Current” class on a singular page menu item with custom post types?
- Successive creation of over 1000 posts causes 404?
- Which hooks are essential for post templates?
- How can I allow users (subscribers) to download selected posts into a single PDF? (RESOLVED)
- Choose options via url
- Custom Post Type Pagination 404 Error (if paged>=2) [duplicate]
- Display ONLY Latest Post From Several Categories
- Display post structure in function
- Default post type doesn’t display in url
- Is there a block to print post link standalone in a block theme?
- How can I locate the single buddypress forum post template? [closed]
- Notify/check if the content of a custom gutenberg block has changed on save_post