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
- 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]
- Include files in child theme functions file
- 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
- 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?
- Child theme – overriding add_image_size by a child theme [duplicate]
- Is it possible to override this function/class in a child theme?
- How to override functions.php in child theme?
- WordPress Change Post Templates,but not drop down, but Image selection
- 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
- How to override filter in child theme?
- I created a child theme and it doesn’t work for some of the css files
- Unregister Nav Menu with fallback?
- Child Theme Not Overriding Parent Theme
- Changes to functions.php not working
- Help to resolve Syntax error, unexpected ‘endwhile’ (T_ENDWHILE) [closed]
- How to store / access files in child theme folder
- Overwrite Parent Theme add_image_size in Child Theme
- Proper way of using functions in action hook?
- how to edit functions.php in a child theme
- Display Password Protected external RSS in wordpress template
- Include files in child themes, declare in functions.php
- 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
- Modify a function without editing template
- Echo tags used to describe the theme
- Child theme within a child theme?
- Problem only while using require_once() within functions.php
- How can I change a function in a parent theme via a child themes functions.php
- Automatically include all php files in a child theme directory
- Override the function twentytwelve_scripts_styles in a child theme
- Use one template only for custom post type archives?
- Pass variable from action back to template
- Load custom css in functions.php causing library issue
- How to edit classes in body tag?
- Run a jquery script on on a certain template page
- Can’t locate custom image sizes defined by child theme
- Can’t switch to a child theme using filters template, option_template and option_stylesheet
- How to display the_archive_title() and the_archive_description() – “weird” interaction
- Add a field into a shortcode of an extension
- overwrite code snippet from parent to child theme
- Unable to point the child theme directory even using get_stylesheet_directory()
- How to edit/replace Parent functions.php function in Child Theme to add “Walker” class
- Using functions.php to include code that’s processed inline
- get_template_directory_uri() links to child theme not parent
- Solution dealing with Child Theme / Parent theme functions
- get_template_directory() – references parent theme directory
- Prevent creating multiple image resizes in twentytwelve template
- Any adverse effects of adding apply_filters to a function?
- Display ACF category image on archive and single template files
- Is it possible to set archive.php instead of index.php to display blog?
- Create a CUstom Archive by Year, but just for a Single Category
- Render page with specific id from functions.php
- Exclude specific post from query
- How to require a config file in a template and in function.php?
- the_date() and the_time() functions display actual date an time instead of published date and time
- Adding a schema code to one specific page using functions.php file
- How Do I Unhook This Parent Theme Function?
- Child theme, how to cut the functions.php file into several classes?
- Replace theme function
- How can I make custom page templates work on child theme?
- Setting Up Child Theme To Take Priority
- How do I create a child theme from PowerMag theme
- How would I correctly implement a new if statement in a child functions file?
- WP Enqueue Script Error
- Featured image on archive page based on post type
- Child Theme not loading multiple stylesheets
- Including admin-options.php file in Child Themes
- Modified functions.php in Magazine Pro theme of Genesis. 500 error
- Help with is_page() and calling css for specific pages in a Child Theme
- Replacing term/taxonomy archive pages with search queries
- Javascript and Stylesheet in child page
- How do I integrate my Child Theme into a Custom Template?
- Child Theme functions.php has no effect
- Is it possible to change parameters of Parent theme function in the Child theme?
- Preventing PHP Execution in Parent Theme
- Why does my visual post editor break when I try to add a TinyMCE button?
- Functions.php in child theme that loads CSS file breaks website
- Unregistering custom tinymce plugin?
- Override parent theme function that is not hooked or in the functions.php file
- Shortcode to output get_header not working
- Problem with Child-Theme using of foundation-framework [closed]
- post_row_actions filter from parent theme not executing in child theme