Why you are using this filter code, WordPress will still use searchform.php code, without it?
Further, it could be some issue with the loop code within search.php. Twentyfourteen theme looks for content-[post-format].php file. Do you have one in you theme root?
get_template_part( ‘content’, get_post_format() );
try using this simplified loop in search.php …
<?php if(have_posts()) : while(have_posts()) : the_post(); ?>
<?php the_content(); ?>
<?php endwhile; endif; ?>
Related Posts:
- How to remove search bar from a wordpress theme? [closed]
- wp_enqueue_scripts not called on search page?
- How can I customize wp_footer, where is the code that controls what this function does?
- Implement advanced search
- Why is the post type on the search result page random?
- Non-Blog Website without Search: are comments.php and search.php in theme still required?
- Custom WordPress Theme – Search not working on posts
- WordPress Filtering Custom Post Type by Metadata and Search Heirachy
- Post and page content not displaying in search results
- $_POSTing to and modifying the WP search results page
- Search Form Not Working
- altering search terms
- Custom search template is showing 404 when adding query string
- Woocommerce AJAX filters option loading spiner – problem on mobile device
- Why not works the search.php file?
- Is it possible to show sort page excerpt in search.php
- New theme HTML5 Support for Search in WordPress 4.4
- WordPress Custom Search By Alphabet and order by asc and sesc
- Incorrect search results in search.php – issue triggered by using `define(‘BodyID’, ‘search’); the_post();` in search.php
- The normal loop with different styles doesn’t work in search.php
- Search Results not displaying for multiple word search
- custom theme’s search not working
- How important is it to enqueue a theme’s stylesheet?
- Can a theme be built in React?
- Single Page WordPress Theme – Using page templates
- Confused about image sizing business in WordPress
- Add link option to featured image?
- Creating the modern ‘single page’ html5 css3 layout in wordpress
- esc_url not working within add_settings_field callback
- How to override BuddyPress 3.0 bp-nouveau theme files?
- Which theme foundry has clean coded themes, where code is poetry [closed]
- Responsive Images – Generating multiple images from Theme Customizer control upload?
- How can a Theme Contain no Header File or Footer File?
- Same footer on all multisites blogs
- New template, where to place CSS?
- WordPress not registering Theme Customization Section
- For best DB performance should I serialize all theme options together or by type?
- Find the Children of a Page then Echo it as a Bulleted List of Links (menu)
- Custom Widget options in theme
- Include Parent functions.php in Child Theme functions.php
- Redirect to specified page when insufficient permissions?
- Reasons why all thumbnail sizes aren’t working
- Jetpack Comments with fall-back
- Update a custom theme with Subversion?
- Should I use add_filter for functions in function.php of the theme?
- wp_script_add_data doesn’t seem to work
- How to override checkbox styles if these inputs have a unique id [closed]
- What are the minimum role/permissions for freelance developer?
- Where am I doing wrong in my theme menu?
- Calculate data and passing to Theme
- Multisite theme path rewrite using .htaccess
- Retrieve localised value
- How to disable wordpress from overload my stylesheet styles with customizer styles
- How can I conditionally show different home page templates based on whether or not the user is logged in?
- different way to achive stylesheet_url
- How to find default functions of wordpress
- How to remove ver from stylesheet URL? [duplicate]
- Using a starter theme vs starter theme with child theme
- How should I use starter content utility to show some default menus?
- Set a featured image as a replacement to the header image
- How to include Google fonts [duplicate]
- How To Detect Posted Comment in Theme Development?
- Create a category archive page in TwentyTen Child Theme
- where is real values of variables?
- How to remove WP Title Tag?
- Change the sidebar from left to right twentyfourteen theme
- Change Image Sizes for Mobile Theme
- Recommended sidebar / content widths
- Dynamically Populating Image/Excerpt/LInks from Pages in WordPress
- Trouble in creating a custom template on twentyeleven theme
- language support in a custom urdu theme
- If I remove Category base from my URLs, how difficult will rollback be?
- Is there a list of default generated Gutenberg block CSS? Unable to align video blocks
- In wordpress customizer div still showing even if I hid it with javascript
- Programatically Created Menu not Editable in Dashboard
- Embedding CodePen Calorie Script – jquery error
- How to make updatable custom WordPress theme?
- Is it possible to echo a woocommerce prouct attribute discription?
- change background image on scroll
- Duplicate child theme incl. design changes
- Why .widget-area is outside of .site-content in Underscores starter theme?
- Using wp_add_inline_style Inside a Template File
- How can I use a different template file for the blog index’s paginated pages?
- How to customize the colors within a stylesheet using a WordPress setting
- WordPress Twenty-Fourteen: How to Remove Home Page Header Image from Other Pages
- On wordpress, how do i require specific dimensions from user uploads only
- how to create export / import theme options in wordpress without plugin
- WordPress Customization API overwrite LESS variable
- Modify comments_popup_link output
- Create image with imagepng() (fails at header)
- Can you create a custom page with content in the center already defined?
- Dynamic meta description
- How to Remove Sidebar when get_sidebar() is not get called in page?
- RSS feed url showing page not found. How to solve it?
- Enable WP to accept standard jQuery code embeding between the tags [duplicate]
- Retina ready for uploaded images which are cropped
- Allow users to edit home page from WordPress (home.php problems)
- WordPress does not know the parametrs i sent to admin post
- Display Page featured Image as well as Posts featured Image
- Custom Single Page Portfolio Theme [closed]