WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] search problem, easy fix? (10 posts)

  1. sliip
    Member
    Posted 6 years ago #

    http://www.ebfchurch.org/?page_id=161

    here is my search page. When a search is done, it pulls up all of the pages from my actual site. How do i get this to not do it. I know it is a simple fix but I am not sure where. Any help would be appreciated.

    thanks

  2. sliip
    Member
    Posted 6 years ago #

    here is another example. Not that one is needed
    http://www.ebfchurch.org/?s=exodus

  3. sliip
    Member
    Posted 6 years ago #

    Anyone able to help a bit?

  4. Samuel Wood (Otto)
    Tech Ninja
    Posted 6 years ago #

    Maybe we could help if you explained what you were talking about?

    This...

    When a search is done, it pulls up all of the pages from my actual site. How do i get this to not do it.

    ...doesn't make any sense. What do you want the page to do? Nobody can answer what they don't understand.

  5. sliip
    Member
    Posted 6 years ago #

    Thanks for responding. I have posted an example above that should help to illustrate what I am trying to say. However....when the site does a search, it then pulls up a message and shows every page from within the wordpress site itself. This is after my footer. Does that make sense?

    here is another example.
    http://www.ebfchurch.org/?s=exodus

  6. Roy
    Member
    Posted 6 years ago #

    That is odd. Have a look at your search.php (or however it is called in your theme). It looks like there is a get_links argument or something there. Intially I thought that it could be your footer.php, but that can't be since the footer is correct on other pages.

  7. sliip
    Member
    Posted 6 years ago #

    After looking for those files I have 3 that seem similiar
    Search.php
    searchform.php
    searchform2.php

    None of them have the get_links argument. When viewing the sorce code of that page (link above) I find this:

    <li>
    						<p>You have searched the <a href="http://www.ebfchurch.org/">Evanston Bible Fellowship</a> weblog archives
    			for <strong>'exodus'</strong>. If you are unable to find anything in these search results, you can try one of these links.</p>
    
    						</li>

    I need to find that and I think that is were the problem will be found. I have searched all of the pages in my theme but can't find it. I wonder if that is built into wordpress? :/

    any ideas?

  8. Roy
    Member
    Posted 6 years ago #

    Not in the search.php? Maybe you can just use the windows search function in the Explorer (not Internet Explorer) and search inside theme files (bottom search box) for "You have searched" or something. I can hardly imagine that this comes from the single.php, but who knows.
    In any case, the "you can try these links" refers to your pages, blogroll and archive.
    Btw. I nowhere saw a searchbox on the site, so why is it a problem?

  9. moshu
    Member
    Posted 6 years ago #

    THat looks more like a wrongly placed get_sidebar call...

  10. sliip
    Member
    Posted 6 years ago #

    Genius! that was it. It seemed weird to me that it was above the footer in the code, So I did not suspect it. Excellent.

    Thanks for helping me troubleshoot this.

Topic Closed

This topic has been closed to new replies.

About this Topic