I had a similar problem going on. I had a custom post type Vacatures which I wanted to display with a page-vacatures.php.
But the layout was completely messed up. After digging through every file in my theme, I figured out that the webpage used archive.php.
Setting 'has_archive'=>false
solved my problem because WordPress wouldn’t search for an archive file but for the template file (page-vacatures.php) that I specified.
@Rinoleti: Have you tried saving your permalinks again? After changes to a link I always save the permalinks again because WordPress can do weird stuff after changing a slug or something like it.
Related Posts:
- What does this PHP function code mean? [closed]
- How do I append multiple taxonomies to the URL?
- Setting Default Category for Custom Post Type Upon Autosave
- Custom post status not working
- WP 3.1 – archive pages for custom content types possible now without a plugin?
- Admin Post Update Redirection to Posts Screen
- modify all posts of a category to “no comments allowed”
- How to not allow custom roles to edit published custom post types?
- Assign Page Template Within A Custom Post Type
- How to override parent theme function through the child theme [closed]
- Custom Taxonomy conditionals
- Single Page WordPress CSS and JS links
- [Plugin: Posts 2 Posts] Changing display order of connections
- Disable dragging of metaboxes in custom post types?
- Error after deleting Custom Post Type with a function (no trash used)
- How to delete all posts from a custom post type?
- Structure for projects and clients
- Custom Post Type Alerts
- Why is my custom loop not filtering correctly nor paginating?
- Custom post types with custom directories
- Saving repeated option values in a custom query
- How to customize admin posts based on the user who is logged in
- Custom Post Type | Fatal Error on register_post_type()
- How to post twitter like updates on wordpress
- How to get all `supports` attributes by post type?
- Custom search for custom post meta with pre_get_posts interferes with WP search
- apply filters only to specific post listing without check the url parameters
- Dynamically add / duplicate custom meta in custom post types
- Deleting Custom Post type data using mySQL command
- How can I create a custom meta box to add an mp4 video to a page?
- Custom post type menu missing after 3.0b2 -> 3.1.2 upgrade
- Group posts by custom post type
- How inefficient is it to use a Custom Post for 4-5 sentences & pull all to 1 page?
- Plugin: register custom post types, child ready and performance best practices
- Permalink structure by Post Meta value
- Define new user capability for custom post types?
- 2 Templates 1 custom post type according url
- changing meta value and meta key of price field
- WordPress sort search results by custom order
- How to start a new post with custom Taxonomies already set?
- WooCommerce sort products by the actual product width(not the shipping width)
- Create a custom php page and load it at a specific slug
- How to handle paged param in post and custom-post-type?
- Shortcode to display Staff post type based on Location post type and Specialty post type
- Adding the_content() in custom template email
- How to add attributes to taxonomies that may be different from post to post?
- Pages are not saving due to custom post type
- Migrating a taxonomy’s tags to the native category
- How does order=asc effect a wp_query (its acting pretty weird in a loop)
- How to sort posts in a custom post type by title in ascending order by default?
- custom post type vs. conditionally displaying meta boxes for specific terms?
- Edit the_content() function so to add a div wrapper
- Number of posts in the archive
- Replace dynamically content in a custom database table when a custom post is created
- Custom post type menu
- How to get the current category with custom posts
- WordPress Count posts within a custom post type
- Custom Post Types and Removing Slugs – should we do it?
- Need to have an archive widget which organizes and displays a custom post type using a custom date field
- Custom Content Type with No Page View
- Custom post type tags not showing in search
- How to list posts by term (custom taxonomy)
- Function to add custom HTML into head in custom post-type list page
- What is the best way to manage small blocks of content on my home page?
- One post auto attached to many another items
- Custom Post Type Implementation
- Related “custom post type” using “custom taxonomy”
- How do I “trash” a custom post type post while logged in as Admin
- How do I disable the built-in editor and automatically configure the properties of new pages?
- How to have multiple search result pages in wordpress with taxonomy terms listed
- Auto update publish date of CPT Post if default post custom field value match to cpt post CF Value
- How can i display a taxonomy? i have created a plugin and then a custom type. and a taxonomy , also i have register it
- How to limit the number of custom posts certain users can publish in WordPress using php script?
- Is it possible to create 2 unique titles for an Events custom post type: Upcoming Events and Past Events?
- Custom page for creating/editing custom post type
- What is WordPress Way to Add Content Blocks to Post and Reference them as Many to One Relationship?
- wp delete duplicate entries of custom post types every 15 minutes
- Displaying posts inside table having issues
- Building Link List for Custom Tax
- In the admin, how can you list thumbnails instead of titles for a custom post type?
- Attempting to create custom “post” template, getting a 500 internal server error
- connect users to Custom post types
- creating a custom post template
- Custom Pagination based on Custom Post Type
- Custom user roles
- Create 2-layered dropdown menus for custom taxonomy and custom post type
- Custom Post Type
- Cant edit custom post type in WordPress dashboard
- Registering an optional custom post type from a plugin
- Advanced Custom Fields – Add Field to Specific Page [closed]
- Custom metabox value not saving
- Cannot modify a registered custom post type rewrite slug
- Make title field multiline in the add new custom post page?
- Select Menu for Custom post Type does not save
- Add Image field to CPT
- How to delete unnecessary custom post types in the UI
- Advise on Custom Taxonomies and Structure
- cannot export data from CPT UI (books)
- REQUIRED: The theme uses the register_post_type() function, which is plugin-territory
- display posts, pages and custom post types from another wordpress site