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
- How to include my own css in post
- Custom post types related to same custom post type?
- How do I insert a post with custom post type and relate it to a custom taxonomy?
- Dynamically switch template on click
- posts not showing on index.php
- “about us”, ” contact” sections should be article(post) or page in the simple small Business website?
- Is it possible to customize the post according to post format in single.php?
- Customize rel=canonical tag for single blog post
- a little direction on custom post type
- disable Tab post on nav-menus page (Admin)
- Hide a specific post from a page template
- Format latest/newest post differently
- Custom taxonomy archive page problem
- Is there a way to create a meta box that can be added multiple times to a post dynamically?
- relating business and products with custom taxonomy?
- Best Way to Add UnEditable HTML to Posts
- How to make different custom post layouts?
- How safe is it to delete old posts edits to save database space?
- Two Custom Post Types with Identical Articles Competing for the same Slug
- Custom Post Type archive
- WordPress custom post type with folder structure in slug
- Using setup_postdata() with multi-dimensional array
- Is codex right on deleting post?
- Why won’t pagination work?
- Check if a custom post type has already been created
- WordPress Query Posts From Category Post on Static Page
- Edit multiple custom post types while saving a new or edited post
- Is it possible to give the user the chance to select between two single template files to use in a post?
- how to set social icons to product / post template (Auros theme)? [closed]
- How to identify and hide/remove an element from a WordPress page [closed]
- wordpress posts template remove default template from menu
- How to add automatically bootstrap 4 order-lg-1 and order-lg-2 classes for columns in foreach loop based on the count?
- if in category but only with post meta
- Force a specific template as default
- How to get different Related Posts
- How to add convenient buttons for new custom post statuses
- How to allow multiple thumbnail upload for Posts?
- showing posts of an specific category in admin custom menu with style of admin posts section
- add external project to web site wordpress on production
- Deleted a user with administrator rights. Now all the data/content/images are lost. how to recover them back
- Show custom post with custom categories with specific slug
- register_post_type permalink
- Display the 2nd category name of a custom post type without error if its null?
- Auto delete posts based on content text
- How to call posts under a specific category on static front page?
- Querying another post category to match current post and display in loop
- Custom home page with full post for first one only
- Custom Post Limit for homepage only without plugin?
- Give posts a particular template based on the assigned category
- Display value of custom field at the beginning of a post
- l accidentally permanently deleted a Draft. There’s any way I can recover it?
- datepicker value in mysql
- Display a post via template
- Inserting an example of the last 3 post on to the homepage
- Single post full screen template not inheriting WordPress role permission
- How to set a certain Custom Template to a Single Blog Post
- Static pages not working
- Optimize CPT-function with a loop
- List all native posts in template page?
- Sidebar on single.php not showing up
- Add post tags to previously created custom post type
- How to Featured content with images in home page?
- Can WordPress handle following functionalities?
- Simple Custom Metabox Not Saving
- Get a term each custom post type
- Change default post style to columns
- Post titles and thumbnails as links to custom post types?
- Post Templates and Post ID’s
- Custom Post Type, post-formats associated to custom post type > 404 archives
- How to display only one category in a custom post type?
- Adding a custom post type meta field to rss
- How to restore deleted post related with deleted users
- How do I disable the “by author” hyperlink on posts?
- Help with listing current users submitted custom post type in template file
- Trying to query all posts in category 4
- Delete post from admin but not from database
- Output Buffer Issue with Single Post View
- Custom Post Type Single Loop Outputting Wrong Post
- Getting post and attached image from subdomain
- Custom post type slideshow background images to insert in a plugin
- Organization of time insensitive content
- Custom Select Query – Selecting the Year?
- Deleting old posts
- How To Use Custom Tax of a Post Type
- How to output all taxonomy links from a custom post type in a menu?
- Prevent 404 of Author pages without posts
- Can I style single post that are in multiple catergories?
- Trying to exclude custom posts based on date, while sorting by custom field
- WordPress Post Deletion Issue