Hallo.
Ich bin neu hier und hab gerade erst mein WP-Blog gestartet.. Nun habe ich aber leider bereits mein erstes Problem. Ich habe mir das folgende Plug-In heruntergeladen:
Search Excerpt WordPress Plugin | SYP
Aktiviert, aber als ich meine Suche dann ausprobiert habe, hab ich gesehen, dass meine Suche folgends aufgebaut ist und nicht der Abschnitt mit dem Suchwort angezeigt wird:
Datum - Titel des Beitrags
Wie mache ich das, dass es richtig angezeigt wird? Kann leider nicht so gut englisch, google-translate bringt da nicht viel, hier der Ausschnitt:
ZitatWordPress’ searching capability is a bit mediocre at the moment. It splits up the keywords, digs out texts using SQL’s LIKE operator, and returns all entries that match the criteria, in a reverse chronological order. Then the default template will display some of these entries, using the template function the_excerpt(), which basically returns the first 55 words, HTML striped.
To have a more functional search, i.e. returning entries in the order of relevance, I think WordPress would need to either try to index the text (which is wha Search Reloaded plugin is about), or utilise MySQL’s full-text search functions. Both would require modifying the database layout and change “the loop”. Yuk.
To have a more meaningful result display, i.e. returning text snippets surrounding the matches, is however quite easy to achieve. Thus my Sunday evening’s little project, “Search Excerpt” plugin that displays more meaningful result than the default first 55 words.
It extracts out the search keywords, scan the content of matched post entries, and display document snippets around the keyword, with that specific keyword highlighted. It adds a filter in get_the_excerpt() function so no modification needs to be done to WordPress’ 1.5/2.x theme. For other themes, make sure during “the loop” in search.php, it calls the_excerpt() to display the post entries.
WIe ich verstehe, muss ich irgendwie the_excerpt() in mein Theme eintrgaen, aber wie mache ich des?
Danke für jede Hilfe, bin noch nicht so erfahren.
P.S. So sollte es dann etwa aussehen (Plug-In Seite, wo auch das Plug-In angewand ist):
Scott Yang’s Playground | Search Result
Grüße!