This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.
You can get posts according to custom fields of your post.
Follow some steps to get posts according to custom fields:-
-
Add Custom Field to Your Post
Begin by adding a custom field to your post. Go to the Posts menu in WordPress. A new sub-menu will appear; click on All Posts to display a list of all your posts.
-
Choose the Post
Select the post to display based on custom fields and click on the Edit link for that post.
-
Locate the Custom Field Section
In the edit page for the post, you will find a custom field section located under the text area. If the custom field section is not displayed, click on the Screen Options at the top of the edit page, and from the dropdown that appears, select Custom Field.
-
Define the Custom Field
Specify the custom field name and enter its value.
-
Publish or Update the Post
Click on the Publish/Update button to save your changes to the post.
-
Access WP Post Pro Plugin
Now, open the WP Post Pro Plugin and click on Manage Rules for the rule to which you want to apply changes.
-
Enable Custom Fields Filter
In the Custom Fields Filter section, check the Apply Custom Fields Filter option.
-
Specify Custom Field Values
Enter the name of the custom field and its corresponding value as you entered in the post. You can add more custom fields by clicking the Add More button.
-
Save the Rule
Click on Save Rule.
-
View the Results
Now, only that particular post which matches the custom field criteria will be displayed.
Explore the latest in WordPress
Trying to stay on top of it all? Get the best tools, resources and inspiration sent to your inbox every Wednesday.