• I went to use the search function on my website the other day (www.merialc.com) and no results are coming up. From looking at the source of the results page, it seems that for some reason, it’s not loading the second half of the page (including the footer). Does anyone have any ideas/suggestions as to why this could be happening?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Do you have a template set for the search page (eg search.php in the theme directory) and is it correct ( eg does it call your footer )

    Thread Starter merialc

    (@merialc)

    Yes and yes to the template calling for the footer.

    I’ve also just noticed that a similar problem occurs if I try to go to a category page (eg. https://www.merialc.com/?cat=11)… where it seems to be truncating the page’s output.

    If you look at the code for the above page linked to, there is no footer in the xhtml, the page stops at

    <div id="content">

    <h2 class="pagetitle">Archive for the 'Live' Category

    Thats how the catorgary page ends, so there must be some mistake in the php somewhere.

    You could try to upload the search.php again, perhaps you never uploaded it right.

    Thread Starter merialc

    (@merialc)

    I updated the search.php file, and that seems to have resolved the problem on searching, but I still can’t seem to work out how to resolve the problem for the categories. Any suggestions?

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Search function not returning any results.’ is closed to new replies.