Trusted WordPress tutorials, when you need them most.
Beginner’s Guide to WordPress
WPB Cup
25 Million+
Websites using our plugins
16+
Years of WordPress experience
3000+
WordPress tutorials
by experts

Wie man ein erweitertes Suchfeld in WordPress mit Facetious hinzufügt

Wenn Sie an einer Website mit vielen Inhalten in benutzerdefinierten Taxonomien und Beitragstypen arbeiten, möchten Sie es Ihren Nutzern leicht machen, diese zu finden. Eine Möglichkeit, dies zu tun, besteht darin, Ihren Nutzern die Möglichkeit zu geben, ihre Suche einzuschränken. Zuvor haben wir Ihnen gezeigt, wie Sie ein WordPress-Suchformular mit erweiterten Optionen zur Auswahl des Beitragstyps erstellen können. Dazu musste jedoch manuell Code zu Ihrem Theme hinzugefügt werden. In diesem Artikel zeigen wir Ihnen, wie Sie ein erweitertes Suchfeld in WordPress mit Facetious hinzufügen können.

An advanced search form in WordPress

Als Erstes müssen Sie das Facetious-Plugin installieren und aktivieren. Nach der Aktivierung fügt das Plugin ein Facetious-Such-Widget unter Appearance “ Widgets hinzu. Ziehen Sie das Facetious Search Widget in Ihre Seitenleiste oder in einen anderen Widget-Bereich.

Configuration options for Facetious search widget

Mit dem Plugin können Sie auswählen, welche Taxonomien und Beitragstypen als Feld für die Suchkriterien verwendet werden sollen. Sie können die Suche sogar auf einen bestimmten Beitragstyp wie Beiträge, Seiten oder Medien beschränken. Facetious verwendet auch eine benutzerdefinierte Permalink-Struktur für die Suchergebnisseite, wodurch das Plugin gut mit Caching-Plugins wie WP Super Cache und W3 Total Cache funktioniert.

Obwohl die Benutzer Kategorien, Tags und andere Optionen auswählen können, um die Suchergebnisse einzugrenzen, verwendet diese Option immer noch die integrierte WordPress-Suchfunktion. Die meisten Leute würden zustimmen, dass dies nicht die beste Option ist. Aus diesem Grund haben wir geschrieben, wie man die benutzerdefinierte Google-Suche in WordPress hinzufügt.

Wir hoffen, dass dieser Artikel Ihnen geholfen hat, erweiterte Suchoptionen zu Ihrer WordPress-Website hinzuzufügen. Für Feedback und Fragen können Sie uns auf Twitter und Facebook finden oder Sie können unten einen Kommentar hinterlassen.

Offenlegung: Unsere Inhalte werden von unseren Lesern unterstützt. Das bedeutet, dass wir möglicherweise eine Provision verdienen, wenn Sie auf einige unserer Links klicken. Mehr dazu erfahren Sie unter Wie WPBeginner finanziert wird , warum das wichtig ist und wie Sie uns unterstützen können. Hier finden Sie unseren redaktionellen Prozess .

Das ultimative WordPress Toolkit

Erhalte KOSTENLOSEN Zugang zu unserem Toolkit - eine Sammlung von WordPress-bezogenen Produkten und Ressourcen, die jeder Profi haben sollte!

Reader Interactions

12 KommentareEine Antwort hinterlassen

  1. Syed Balkhi says

    Hey WPBeginner readers,
    Did you know you can win exciting prizes by commenting on WPBeginner?
    Every month, our top blog commenters will win HUGE rewards, including premium WordPress plugin licenses and cash prizes.
    You can get more details about the contest from here.
    Start sharing your thoughts below to stand a chance to win!

  2. Joe says

    I’m looking to build a smart and detailed product search page – much like ebay, this would let the user pick various categories, filters, sliders, etc. Is there a recommended WP plugin that could do all this using queries on the backend database?

    Thanks,

    Joe

  3. Steven Denger says

    Well the WP Google search is not compatible with my version which is 4.4.3 and if Facetious does not give good search results then I am back to square one – no search box. I am now content on not having a search box after the crazy hassle trying to find one. SearchWP wants $49.00 for their plugin. I would not trust purchasing that for the simple reason that the wordpress search widget that came with my site does not function at all and comes about all scrambled. What is it with WordPress and Search Boxes anyway?

  4. Steven Denger says

    This forum is most of the time very helpful – but all to often it seems to fall into the category of technical info for the more experienced developers. Experienced developers generally do not need help as they are the ones who can answer questions for the one’s like me.
    I cannot believe the technical hassle of trying to put a search box on my site – and exactly where I want it. I have a search widget that comes out all messed up. It displays the box with the name „search“ halfway in and half out of the box. Then it says „search“ again about an inch below it. All together it takes up and creates a 2 1/2″ space besides not displaying properly. When I try search plugins they are dependant on an existing wordpress search box to be installed to begin with. This is one of very many insanely difficult WordPress features that takes something one would think to be simple, and make it as impractical and difficult as one could possibly make.
    Like a lot of things that I would like to add to my website, I have to do without because all the help forums are explained like one developer to another instead of made simple enough to just install and use.
    I see the importance of having a search box on my site because it speeds up the searching for a viewer who does not want to dig around for an hour just to find something. But I have given up the idea of ever having one because like a lot of WordPress additions, it is designed for developers to use instead of the less experienced like myself. And I am experienced enough now that I add everything on my site with code instead of visual – a big advantage when building content in WordPress.

  5. Steven Denger says

    This forum is most of the time very helpful – but all to often it seems to fall into the category of technical info for the more experienced developers. Experienced developers generally do not need help as they are the ones who can answer questions for the one’s like me.
    I cannot believe the technical hassle of trying to put a search box on my site – and exactly where I want it. I have a search widget that comes out all messed up. It displays the box with the name „search“ halfway in and half out of the box. Then it says „search“ again about an inch below it. All together it takes up and creates a 2 1/2″ space besides not displaying properly. When I try search plugins they are dependant on an existing wordpress search box to be installed to begin with. This is one of very many insanely difficult WordPress features that takes something one would think to be simple, and make it as impractical and difficult as one could possibly make.
    Like a lot of things that I would like to add to my website, I have to do without because all the help forums are explained like one developer to another instead of made simple enough to just install and use.
    I see the importance of having a search box on my site because it speeds up the searching for a viewer who does not want to dig around for an hour just to find something. But I have given up the idea of ever having one because like a lot of WordPress additions, it is designed for developers to use instead of the less experienced like myself. And I am experienced enough now that I add everything on my site with code instead of visual – a big advantage when building content in WordPress.
    I cannot afford a developer to do this so I just give up and have to do without. I have spent enough time on this to build about half of a website.

  6. Krish Murali Eswar says

    Which is the best option between the four choices:
    1. Word press’s native search
    2. JetPack’s omni search (I am not sure how it works and if it is indeed a search)
    3. Google search for WordPress
    4. Factitious that you wrote there.

    Would appreciate your help.

Eine Antwort hinterlassen

Danke, dass du einen Kommentar hinterlassen möchtest. Bitte beachte, dass alle Kommentare nach unseren kommentarpolitik moderiert werden und deine E-Mail-Adresse NICHT veröffentlicht wird. Bitte verwende KEINE Schlüsselwörter im Namensfeld. Lass uns ein persönliches und sinnvolles Gespräch führen.