WordPress.org

Ready to get started?Download WordPress

Forums

More Fields
Media library pagination issue (1 post)

  1. Marco Chiesi
    Member
    Posted 2 years ago #

    Hi there,
    I am using More Fields 2.1 on a WP 3.3.1 install and I am experiencing the same problem described here (that topic is closed).
    In Media Library dialogs (i.e. the one for selecting featured images), the list only shows 2 or 3 images per page, instead of 10.
    At the moment I solved by adding the code snippet below (which is different from the one on the linked topic, because in the meantime the source code of the plugin has changed), but I would really appreciate if this will be fixed in next releases.
    Here's the code (to be added in theme functions.php or in a custom plugin).

    add_action('init', 'mf_ml_workaround', 20);
    function mf_ml_workaround() {
    	global $more_fields_rewrite;
    	global $pagenow;
    	if ( 'media-upload.php' == $pagenow || 'async-upload.php' == $pagenow ) {
    		remove_filter( 'posts_join', array($more_fields_rewrite, 'query_join') );
    	}
    }

    http://wordpress.org/extend/plugins/more-fields/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic