Quantcast
Channel: WordPress.org Forums » [WordPress MU Domain Mapping] Support
Viewing all articles
Browse latest Browse all 3502

WPEngine_mike on "[Plugin: WordPress MU Domain Mapping] No pagination?"

$
0
0

The plugin author should add pagination and the ability to change how many domains display at once. You can hack the plugin a little bit inside WP by going to this URI:

/wp-admin/plugin-editor.php
or
/wp-admin/network/plugin-editor.php (if using MultiSite)

Here is the file you'd want to edit, on line 192: /wordpress-mu-domain-mapping/domain_mapping.php

Here is the line:

$rows = $wpdb->get_results( "SELECT * FROM {$wpdb->dmtable} ORDER BY id DESC LIMIT 0,20" );

Notice that number 20 at the end? Set that to 100 and now you can see up to 100 domains at the same time. Just keep in mind, the more you have and the higher you put that number the slower the page will load.

I'm going to look into getting the plugin updated to be more user friendly in this regard although I don't personally control the code itself.


Viewing all articles
Browse latest Browse all 3502

Trending Articles