This tutorial I am explaining how to filter posts by custom fields using wp_query. Using wordpress meta_query() parameter we can retrieve the post based on the custom field.
Here I am filtering the post based on the category name and the custom field ‘front_page’ checkbox. Then displaying those filtered posts as blocks in the home page.Please refer the image below.I have created a custom field checkbox and filtering the post based on that from the database.
This tutorial I would like to explain how to read the data from the csv ,sort the alphabet in order A1,A2,A3…..Z8,Z9,Z10,AA1,AA2,AA3,……….AZ1,AZ2….AZ8,AZ9,AZ10 and return the sorted data back to the csv.