How to Show More Than 30 Custom Fields In WordPress [Quick Fix]


Whenever you compose (or edit) a post in WordPress, you will notice that there is a section called “Custom Field” where you can add custom variable (also known as meta-data) and value to your post. This is a very useful feature that allows you to customize each post with a custom value.

However, there exists a small problem that can hinder your usage of the custom field effectively. By default, WordPress only display a total of 30 custom fields in the dropdown list. This means that if you have more than 30 custom fields, the rest will not be shown in the list. They are still around though, but are not displayed for your selection.

I have recently activated a plugin and it added over 20 custom fields to the database, causing my own custom fields to be pushed out of the list. Here is how you can get your WordPress to display more than 30 custom fields.

1. Login to your WordPress dashboard with your admin account. Go to the “Appearance -> Editor” section.

2. On the right column where it shows the link to your various theme file, click the “Functions.php” link. This will load the “functions.php” content onto the text editor.

3. Scroll all the way down to the end. Just before the ?> tag at the very bottom, paste the following code:

4. Press the “Update File” button.

Now go back to the Post editor and you will find the custom field selection list has increased from 30 to 120.


Note: if you are not able to update the file, it is beacuse you have not set the correct file permission to allow the system to write to it. In this case, you will have to download the “functions.php” file (via FTP) to your computer, save the file and re-upload back to the server.

Building Interactive Longform Storytelling Contents on WordPress

Building Interactive Longform Storytelling Contents on WordPress

This ebook is all about interactive longform storytelling: what it is, why you need to embrace it and its benefits, how to create one, and the available tools to help you create your first longform content.

Get it now! More ebooks »