You must know the use of WordPress custom field (also known as Post Meta). You might see that if you have many custom fields in your WP then you don’t find some custom fields in the list in your post editor.
There are two default rules of showing custom fields (post meta) in list. WordPress does not show post meta those names are started with underscore (_). For example if your post meta name is “_my_custom_field” then it will not be shown the list in your post editor page. These are hidden custom fields. The another rule is that WP shows only 30 editable (those are not started with underscore) custom fields in the list. And those are shown as ascending order (alphabetically). Some plugins use many visible custom fields to store their required data. For that reason you may have more than 30 custom fields. As a result you don’t see your most important and useful post meta fields like ‘image’ , ‘thumb’, ‘video’ etc..
To solve this problem we can increase this limitation. We can show more than 30 custom fields in the list. WordPress has a filter hook to change this limit value. The filter hook name is “postmeta_form_limit“.
To change this limitation open the functions.php from you active theme folder and add following codes any where in that file.
<?php function change_custom_field_limit($limit){return 40;} add_filter('postmeta_form_limit','change_custom_field_limit'); ?>
In above code the number 40 means how many post meta you want to see in the list. You can change this number as your need.
This post may be answer of your following questions:
- WordPress filter hook to change post meta form item limit
- WordPress is not showing my necessary custom fields in the list
- Some custom fields are hidden from the list.
- I don’t see the ‘image’ custom field in my post editor.
- Some post meta field are not being shown in post editor
- How to increase the number of post meta in the meta field list in post editor page