Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • How to increase post meta limit in WordPress?

    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 688
    Comment on it

    Hello readers, today I will guide you to "increase post meta limit in WordPress?".

    Post Meta:- Basically post meta is an attribute of any post, page or custom post type. You can add multiple post meta in a single post.

    Recently I am working on a project and I have added more than 35 post meta ( attribute ) in a single post and get all post meta into a dropdown but all post meta did not display in a dropdown box. Its a default WordPress issue, in default WordPress meta limit is set.

    For increasing the default post meta limit, you can add a hook function, put the below code into your functions.php file

     

    <?php
    	add_filter( 'postmeta_form_limit', 'meta_limit_increase' );
    	function meta_limit_increase( $limit ) {
    	    return 50;
    	}
    ?>

     

    You can increase the post limit according to your need.

 0 Comment(s)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: