WordPress Tutorials

How To Allow Your Users To Filter Posts And Pages In WordPress ?

People are been using wordpress since many a year now and undoubtedly everyone is looking like falling in love with the same. Obviously, anyone would adore any of such platform where there is every task made easy for a blogger to be able to make their content reach higher number of audience. The main role in which plays those plugins, that with every new update gets their number improvised. And among those many of the most amazing plugins is wordpress post filter plugin, which is in here now to make the task a whole lot easier for your users. How? Find it here.

WordPress is something which almost everyone nowadays knows about, there are many of those people out there who are either into this business (or consider it as hobby) of writing blogs. And also, in addition to that, there are readers who according to their need and convenience are reading the content written. As everyone knows that this capability of discovering content according to people’s convenience is something which wordpress made easy for people with its filters.

Using those categories and tags one can easily differentiate its one type of content from the another one. And which in any way makes it easy for those readers or users to simply or discover their own type of content by viewing that one class or category or tag , that would simply present that one article according to their need. But what if this task gets more convenient for users in here by allowing them to get content filtered in more than one category or tag? This would obviously turn out to be useful for those having different sorts of content on their website, so as to make the task easier.

And how can this be done? Well, the answer in here is obviously the wordpress post filter plugin, settling up of which starts with the installation and activation process of Search & filter plugin. Now as soon as this plugin is been installed and activated in your website, there would be that menu item added in admin’s bar named as Search & Filter. And as one clicks over this button, they would be in other second get directed towards the page where whole of the information about how to use this plugin would be provided.

Moving over, this plugin comes up with some sort of shortcode that accepts those different kinds of parameters that can directly make it work on different filtering options. Point to be noted here is that this shortcode can be used by one in any of the post page or maybe even into the text widget. And the code goes something like:

Also, in addition to that, you can also use this shortcode in your WordPress theme files as a template tag, which can be done in a way like:

And this would, as a result, make those filtering options displayed which would be having those search, category and tags fields.

This plugin in addition to all of those already explained fields also accepts those search, taxonomy, post_type and post_date parameters in the same. Here is that another example described in which is used fields like category, tags, post types, and also the date fields which would at whole result into something like this described in the picture below. You while working on this shortcode in here would have to get this done like this:

And this code is when applied, going to result into something like this:

Now, this was all about using those dropdowns but what if one has to go for an option of using checkboxes and also add labels for each and every different field!? Well, this one is possible too. All you need to do in here is add two more parameters in the shortcode of wordpress post filter plugin which you already have written before, and is now going to be something like:

This shortcode would also be working when a person having websites has its blog posts described on some different page and not the same one. And this would then be going to look like something as shown in the picture below:

Also, in addition to everything, you while using this wordpress post filter plugin should keep in mind that if you are in any way using different kinds of fields, types and headings, at a same time.Then at that moment it is important to make sure that whole of the items are in same order for each and every parameter which are going to be getting described in the shortcode.

Here is an example which can make this understanding of the above described statement easier. In this example, are used parameters of category, posts types and tags with also those different kinds of heading and form field types.

And this shortcode would now result into something like this described in the picture below:

In addition to these above-described methods, there are also many of those other ones which you can apply to use this shortcode provided by plugin, so as to make it easy for people to filter more and more content on the basis of their needs and preferences.

For example, you can also use this shortcode in text widget that can help people in making it work same as the way they want to. But, there are also some of the cases where this task becomes really difficult and so that is the point where one can go for using the same in using shortcode for sidebar widgets.

So, basically this search & filter plugin is actually that another addition in your wordpress which can make it easy for many of those users visiting your website to get filtered whole of the posts which they prefer to give their read to. This would make whole of the task quite easy and also ending up by making all of those users satisfied and happy.

Leave a Reply

Your email address will not be published. Required fields are marked *