WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have some translations of Bible in Turkish language. But, they are as of books. (Matthew, Mark, Luke, John... ) I uploaded them into a website which is being managed by a wordpress software.

http://www.incil.biz/incil-1 http://www.incil.biz/incil-2

I want to make a Bible search engine. But, these are very long texts.

How can I create a Bible search engine via WordPress?

Is there a way to split the books into verses?

share|improve this question

closed as not a real question by Wyck, brasofilo, s_ha_dum, Chris_O, anu Feb 3 '13 at 8:16

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

This is not a realistic question, creating a custom search engine is complex. – Wyck Feb 3 '13 at 1:48
@Wyck Complexity alone is not a close reason. – toscho Feb 3 '13 at 7:04

If I understand your question correctly, the problem is the target for the search results. Just finding the matching page is not good enough when the visitor has to scan a long document after entering the page.

You could split the long texts into smaller pieces, in WordPress: posts.

An idea:

  • Create a main page for each book.
  • Create a child page for each part of the book.
  • On the main page print the content of all child pages, so your readers can read the whole book at once. Pseudo-code, not tested:

    $sub_pages = get_pages( array ( 'parent' => get_the_ID() ) );
    foreach ( $sub_pages as $sub_page )
        echo apply_filters( 'the_content', $sub_page->post_content );
  • Add a book selector to your search field: for each main page offer the numeric ID as checkbox value and the title as label text. Then filter the search query to search in child pages of these parent IDs only.
  • In your search results, the visitor gets links to the small parts only, you just add a link to the main page to these sub-pages.

An alternative approach:

  • Keep the texts together, and add a parameter highlight with the search phrase to the search result links, like this:

    <a href="/foo/?highlight=moon">Page title</a>
  • On the found page, inspect the $_GET['highlight'] and mark all matching words with a custom element:


    But that would still require a lot of scrolling.

share|improve this answer
Thank you for your help toscho :) – kapkan Feb 7 '13 at 9:00

Not the answer you're looking for? Browse other questions tagged or ask your own question.