The one who most and the least will have observed the categories and tags of WordPress blogs.
A few know how urls are formed to be able to access articles that include a certain tag or category, filtering the rest.
But, would you know how to filter the content of a blog using various labels or categories at the same time?
You’d know to combine the filter above with the ability to search for any word in the article content?
Well, that is precisely the question that arose the other day when I started looking for an article on the blog and, as much as I tried, there was no way it would appear among so many publications
Lets start by the beginning: distinguish the different elements (searches, tags and categories)
And for this, nothing better than observing the following screenshot
Suppose we want to find:
- Items under a certain category We will use urls of the type https://andalinux.wordpress.com/category/multimedia
- Publications with certain hashtag the url will be https://andalinux.wordpress.com/tag/ps3
- Entries containing certain text (search) we will use https://andalinux.wordpress.com/?s=fdisk
To search for articles that belong to several types at the same time, we only have to separate the terms from each other using the + sign.
In this way we seek
- Categories: with https://andalinux.wordpress.com/category/multimedia+hardware
- Labels same but changing the keyword https://andalinux.wordpress.com/tag/ps3+videogames
- Certain text we will use as the web address https://andalinux.wordpress.com/?s=grep+awk
If we want to search for articles that contain certain text and are cataloged with several categories or tags, we must compose the web address as follows
Different ways to combine search criteria in WordPress that will facilitate your work when it comes to locating the articles that interest you within a blog.
I remind you that a long time ago we discussed a trick to configure the Google Chrome search engines that will simplify simple searches; It is not as powerful but it is a very useful tool that will speed up your searches from the browser and will avoid having to remember the syntax that we must follow when composing web addresses 😉