Title: Problems editing searchpage.php
Last modified: August 19, 2016

---

# Problems editing searchpage.php

 *  Resolved [Dnal](https://wordpress.org/support/users/dnal/)
 * (@dnal)
 * [16 years ago](https://wordpress.org/support/topic/problems-editing-searchpagephp/)
 * I am designing a website using WordPress and do not want it to look like a blog.
 * With that in mind I am trying to edit searchpage.php so that the date posted,
   comments, categories and tags do not appear alongside the page names in the search
   results.
    When I remove the various bits of php code that WordPress uses to display
   them they do not appear in the search results any more but the rest of the page
   does not display properly and I get an error:
 * > Fatal error: Call to undefined function phpinclude() in /home/tcrfm/public_html/
   > wp-content/themes/lysa/search.php on line 1
 * I have not made any changes to line 1, which reads:
 * `<?php get_header(); ?>`
 * The header displays correctly but there is no white background behind the page
   content as there should be and the rest of the page (sidebar, footer etc.) does
   not display.
 * I don’t understand why removing a small piece of php which has no connection 
   to the rest of the page content causes such havoc.
 * I should also mention that if the search finds no results the page displays correctly
   and the “nothing found” heading which is included in searchpage.php shows up 
   as it should.

Viewing 4 replies - 1 through 4 (of 4 total)

 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [16 years ago](https://wordpress.org/support/topic/problems-editing-searchpagephp/#post-1523882)
 * The error is in search.php – not searchpage.php.
 *  Thread Starter [Dnal](https://wordpress.org/support/users/dnal/)
 * (@dnal)
 * [15 years, 12 months ago](https://wordpress.org/support/topic/problems-editing-searchpagephp/#post-1524047)
 * Sorry, I meant search.php **not** _searchpage.php_. My mistake. Anyway, the problem
   still stands.
 * Any ideas?
 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [15 years, 12 months ago](https://wordpress.org/support/topic/problems-editing-searchpagephp/#post-1524048)
 * Try changing `phpinclude()` to `php include()`
 *  Thread Starter [Dnal](https://wordpress.org/support/users/dnal/)
 * (@dnal)
 * [15 years, 12 months ago](https://wordpress.org/support/topic/problems-editing-searchpagephp/#post-1524049)
 * Thanks a lot, that seems to have solved the problem. Oddly the `php include()`
   in line 1 was fine. The problematic one was much further down.
 * Thanks a lot!

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Problems editing searchpage.php’ is closed to new replies.

 * 4 replies
 * 2 participants
 * Last reply from: [Dnal](https://wordpress.org/support/users/dnal/)
 * Last activity: [15 years, 12 months ago](https://wordpress.org/support/topic/problems-editing-searchpagephp/#post-1524049)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
