Skip to content

beaulebens/simple-search-operators

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

WordPress Simple Search Operators

A simple WordPress plugin that allows you to use syntax like author:jimmy tag:personal sunday to search WordPress, and restrict your results to those written by Author (slug) 'jimmy', tagged with 'personal' and containing the string 'sunday'.

No UI, no configuration, just drop it in (works in mu-plugins if you'd like to set-and-forget), and it will spice up your searching experience a little.

Supported operators:

  • author: match the slug of an author to list their posts
  • category: to show a specific category
  • tag: to show posts tagged with a specific tag
  • format: or type: to restrict results to a specific "post format" (e.g. image, quote, aside, etc)
  • not: to only show results that don't contain a string (native support in WP by preceeding strings with -)

You can combine operators and string search (e.g. 'tag:burrito type:image carnitas').

About

WordPress Simple Search Operators

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages