This is minimally tested– nearly untested really– but:
function force_archive_php_wpse_88824() {
if (is_main_query() && is_archive()) {
include (get_stylesheet_directory().'/archive.php');
exit;
}
}
add_action('template_redirect','force_archive_php_wpse_88824');
You are interrupting the template load process and forcing a file of your choice to be used.
Reference
http://codex.wordpress.org/Plugin_API/Action_Reference/template_redirect
http://codex.wordpress.org/Function_Reference/get_stylesheet_directory
Related Posts:
- Make “sidebar template” the default template for new pages
- Pagination in relation to archive.php
- How to load parent theme template parts in child theme
- How to include any template using Shortcode fuction?
- Image loading function not working on archive.php template
- Simplest Way to Build Custom Archives Page?
- More than one search results page template for two searches on site
- Remove “Category:”, “Tag:”, “Author:” from the_archive_title
- get_template_directory_uri pointing to parent theme not child theme
- How to customize the_archive_title()?
- How to override parent functions in child themes?
- remove_action on after_setup_theme not working from child theme
- Adding a second email address to a completed order in WooCommerce [closed]
- Child theme – Overriding ‘require_once’ in functions.php
- Include files in child theme functions file
- How to redirect to post if search results only returns one post
- Order posts (across the whole site) by metadata date
- Get list of years when posts have been published
- Redeclare a function in a child theme
- How to override a function when isn’t at functions.php
- Child theme functions.php do I use php open and close tags?
- How to override admin-bar style
- Declaring an instance of class included in parent theme from child theme functions.php
- One Child Functions.php for Multiple Child Themes
- Removing custom background and header feature in child theme
- How to override function in functions.php of parent theme?
- wp_get_attachment_image returns different image size
- Implementing DNS Prefetching with WordPress
- Passing variables to templates (alternatives to globalizing variables)
- Load post with a different template?
- override parent theme configuration in child functions.php
- Child theme – overriding add_image_size by a child theme [duplicate]
- syntax for remove_filter in parent theme with class
- Is it possible to override this function/class in a child theme?
- How to customize search result page title?
- How to override functions.php in child theme?
- Overriding core functions in child theme
- How to fix a theme with page.php Default Template that accidentally deleted?
- Override parent theme function that is not hooked or in the functions.php file
- WordPress Change Post Templates,but not drop down, but Image selection
- Function in Child Theme not overriding Parent Theme function [duplicate]
- Change parent theme file function in child themes functions.php
- Adding extra SVGs to TwentyNineteen child theme using class TwentyNineteen_SVG_Icons
- Reuse variable in hook callback
- Child theme – copied some files from parent to child website still uses parent files
- How to override filter in child theme?
- I created a child theme and it doesn’t work for some of the css files
- Using locate-template & shortcodes doesn’t appear to work
- add sidebar area to header of child theme
- Unregister Nav Menu with fallback?
- Child Theme Not Overriding Parent Theme
- Can I use require() function in a template file?
- How to set global variables in template page?
- Why isn’t is_page_template() adding a body class?
- Changes to functions.php not working
- Overriding methods in a child theme
- How to override enqueued styles using a child theme
- Should I ask a theme developer to use locate_template rather than require_once
- Dequeue script in template isn’t working
- Query children and parent title
- Help to resolve Syntax error, unexpected ‘endwhile’ (T_ENDWHILE) [closed]
- Adjust which tempalte a page uses with a function?
- How to change menu icon which is overriden (i.e. by WooCommerce) [closed]
- Using the child theme functions.php to change the customizer.php on parent theme
- Child theme functions.php not executing
- How to store / access files in child theme folder
- override parent theme configuration in child functions.php
- wp_enqueue JavaScript in child-theme (ReferenceError) using Search & Go
- Overwrite Parent Theme add_image_size in Child Theme
- Retrieve post modified date for specific post by post ID
- Proper way of using functions in action hook?
- Twenty Eleven Child theme error when attempting to use a rewritten function
- How do I get a child theme to load scripts from the parent theme?
- Attach parent category template to all subcategories
- Add class or ID to any WordPress function
- how to edit functions.php in a child theme
- Load parent theme files before child theme functions.php
- How to remove howdy dropdown menu content
- Best practice when altering a parent theme function inside a child theme?
- How to make child theme inherit parent custom theme options [closed]
- How to include local menu based on page id?
- How to create function from code?
- Display Password Protected external RSS in wordpress template
- Include files in child themes, declare in functions.php
- How to extract the variables out from “add_shortcode” function?
- Default Gallery Edit/Template Editable?
- How to remove set_post_thumbnail_size() in child themes?
- How to enable template page only for a post id page
- Avoid loading css from parent theme
- Selective Product Category for Carousel
- How to change login labels
- Override template file i subfolders
- Modify a function without editing template
- Retrieve tags data in post body
- Creating a child theme – functions.php code issue
- Echo tags used to describe the theme
- How to set default archive image without overriding first attached image? [closed]
- Overwriting Parent Theme’s Image Sizes
- Child theme within a child theme?
- Problem only while using require_once() within functions.php