Filtering the posts by alphabets

Filtering the posts by alphabets
Filtering the posts by alphabets

In this article I am showing how to filter the posts by alphabet. Follow the steps at below.

Step 1:

Creating the custom rewrite rule, adding the two new query vars, write a where clause filter and saving the alphabets in array. Open your functions.php file and just drop the following PHP scripts.

This content is only available to members. You must subscribe the monthly membership plan ($.9.99 USD).

Now save the functions.php file and upload it on your server. Next login to Dashboard and flush the permalink structure from Dashboard -> Settings -> Permalinks page. This step is completed.

Step 2:

Creating a template file like page_fba.php and put it in child theme folder. Now open the file and add the following snippets:

This content is only available to members. You must subscribe the monthly membership plan ($.9.99 USD).

Step 3:

Adding some CSS codes in style.css file. Open your child theme’s style.css file and add the following code:

This content is only available to members. You must subscribe the monthly membership plan ($.9.99 USD).

Step 4:

This is the last and final step.

  • Navigate to Dashboard -> Pages -> Add New page
  • Enter the page title
  • Keep entry content blank
  • Select the “Filter by Alphabets” template from Page Attributes -> Templates drop down list
  • Hit on Publish button and live the page
  • Click on “view page” link and see the output

If you need any help then you can feel free contact me.

Share This Article

Subscribe Membership Plan ($9.99/mo)

  • Get full access to all premium tutorials
  • Get Support for the posted content
  • Request for specific how-to tutorials
  • Cancel the subscription at anytime

Reader Interactions

Leave A Reply

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