<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Change Admin Pagination on Posts, Pages and Comments</title>
	<atom:link href="http://wpengineer.com/1030/change-admin-pagination-on-posts-pages-and-comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://wpengineer.com/1030/change-admin-pagination-on-posts-pages-and-comments/</link>
	<description>WordPress News, Hacks, Tips, Tutorials, Plugins and Themes</description>
	<lastBuildDate>Mon, 21 May 2012 15:54:56 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Ein ♥ für Blogs - Payamo.de</title>
		<link>http://wpengineer.com/1030/change-admin-pagination-on-posts-pages-and-comments/#comment-1440</link>
		<dc:creator>Ein ♥ für Blogs - Payamo.de</dc:creator>
		<pubDate>Wed, 08 Jul 2009 05:53:00 +0000</pubDate>
		<guid isPermaLink="false">http://wpengineer.com/?p=1030#comment-1440</guid>
		<description>[...] Bueltge.de // WPengineer.com [...]</description>
		<content:encoded><![CDATA[<p>[...] Bueltge.de // WPengineer.com [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tip: Change Pagination in WordPress Admin Panel &#171; WP TOY</title>
		<link>http://wpengineer.com/1030/change-admin-pagination-on-posts-pages-and-comments/#comment-1057</link>
		<dc:creator>Tip: Change Pagination in WordPress Admin Panel &#171; WP TOY</dc:creator>
		<pubDate>Sun, 26 Apr 2009 08:23:25 +0000</pubDate>
		<guid isPermaLink="false">http://wpengineer.com/?p=1030#comment-1057</guid>
		<description>[...] Tip: Change Pagination in WordPress Admin Panel Written by Stefan Vervoort on April 26, 2009 Hello there! If you are new here, you might want to subscribe to the RSS feed for updates on this topic.Powered by WP Greet BoxWhen I am looking to moderate some comments or simply browse my posts in my WP-admin section, I find it pretty annoying that WordPress only shows 20 items. There are more people that don&#8217;t like this and that&#8217;s why WP Engineer build a solution. [...]</description>
		<content:encoded><![CDATA[<p>[...] Tip: Change Pagination in WordPress Admin Panel Written by Stefan Vervoort on April 26, 2009 Hello there! If you are new here, you might want to subscribe to the RSS feed for updates on this topic.Powered by WP Greet BoxWhen I am looking to moderate some comments or simply browse my posts in my WP-admin section, I find it pretty annoying that WordPress only shows 20 items. There are more people that don&#8217;t like this and that&#8217;s why WP Engineer build a solution. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Frank</title>
		<link>http://wpengineer.com/1030/change-admin-pagination-on-posts-pages-and-comments/#comment-1041</link>
		<dc:creator>Frank</dc:creator>
		<pubDate>Thu, 23 Apr 2009 11:02:09 +0000</pubDate>
		<guid isPermaLink="false">http://wpengineer.com/?p=1030#comment-1041</guid>
		<description>Yes, in 2.8 is this an user-option &lt;code&gt;get_user_option(&#039;edit_pages_per_page&#039;)&lt;/code&gt; and you can set via filter.</description>
		<content:encoded><![CDATA[<p>Yes, in 2.8 is this an user-option <code>get_user_option('edit_pages_per_page')</code> and you can set via filter.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: link2caro</title>
		<link>http://wpengineer.com/1030/change-admin-pagination-on-posts-pages-and-comments/#comment-1039</link>
		<dc:creator>link2caro</dc:creator>
		<pubDate>Thu, 23 Apr 2009 01:01:37 +0000</pubDate>
		<guid isPermaLink="false">http://wpengineer.com/?p=1030#comment-1039</guid>
		<description>For 2.8, filters are better ?

[source lang=php]
add_filter( &#039;edit_posts_per_page&#039;, &#039;cr_posts_per_page&#039; );
add_filter( &#039;edit_pages_per_page&#039;, &#039;cr_pages_per_page&#039; );
[/source]</description>
		<content:encoded><![CDATA[<p>For 2.8, filters are better ?</p>
<p>[source lang=php]<br />
add_filter( 'edit_posts_per_page', 'cr_posts_per_page' );<br />
add_filter( 'edit_pages_per_page', 'cr_pages_per_page' );<br />
[/source]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Frank</title>
		<link>http://wpengineer.com/1030/change-admin-pagination-on-posts-pages-and-comments/#comment-1038</link>
		<dc:creator>Frank</dc:creator>
		<pubDate>Wed, 22 Apr 2009 08:53:13 +0000</pubDate>
		<guid isPermaLink="false">http://wpengineer.com/?p=1030#comment-1038</guid>
		<description>I have updated the function for posts - this is better for filter and pagination. I have seen problems with the first function on WordPress 2.7; I write everything on the nightly build.

I hope you enjoy:

&lt;pre lang=&quot;php&quot;&gt;
function post_ChangeAdminPagination($default_limit) {
	global $wp_query;
	
	// default WP Filter
	// $limit_filter = create_function( &#039;$a&#039;, &quot;return &#039;LIMIT $start, 10&#039;;&quot; )
	
	if ( !$default_limit )
		return $default_limit;
	
	// explode values
	// default: LIMIT 0, 15
	list( $start, $limit ) = explode(&#039;,&#039;, $default_limit, 2);
	
	$limit = (int) FB_CAP_PER_POST;
	
	if ( is_paged() ) {
		$start = $wp_query-&gt;query_vars[&#039;offset&#039;];
		$paged = $wp_query-&gt;query_vars[&#039;paged&#039;];
		
		$start = ($paged - 1) * $limit;
		
		$start = &#039;LIMIT &#039; . $start;
	}
	
	$wp_query-&gt;query_vars[&#039;posts_per_page&#039;] = $limit;
	
	return $start . &#039;, &#039; . $limit;
}
&lt;/pre&gt;

Best regards Frank</description>
		<content:encoded><![CDATA[<p>I have updated the function for posts - this is better for filter and pagination. I have seen problems with the first function on WordPress 2.7; I write everything on the nightly build.</p>
<p>I hope you enjoy:</p>
<pre lang="php">
function post_ChangeAdminPagination($default_limit) {
	global $wp_query;

	// default WP Filter
	// $limit_filter = create_function( &#039;$a&#039;, &quot;return &#039;LIMIT $start, 10&#039;;&quot; )

	if ( !$default_limit )
		return $default_limit;

	// explode values
	// default: LIMIT 0, 15
	list( $start, $limit ) = explode(&#039;,&#039;, $default_limit, 2);

	$limit = (int) FB_CAP_PER_POST;

	if ( is_paged() ) {
		$start = $wp_query-&gt;query_vars&#091;&#039;offset&#039;&#093;;
		$paged = $wp_query-&gt;query_vars&#091;&#039;paged&#039;&#093;;

		$start = ($paged - 1) * $limit;

		$start = &#039;LIMIT &#039; . $start;
	}

	$wp_query-&gt;query_vars&#091;&#039;posts_per_page&#039;&#093; = $limit;

	return $start . &#039;, &#039; . $limit;
}
</pre>
<p>Best regards Frank</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alex Vorn</title>
		<link>http://wpengineer.com/1030/change-admin-pagination-on-posts-pages-and-comments/#comment-1037</link>
		<dc:creator>Alex Vorn</dc:creator>
		<pubDate>Tue, 21 Apr 2009 17:24:42 +0000</pubDate>
		<guid isPermaLink="false">http://wpengineer.com/?p=1030#comment-1037</guid>
		<description>Thanks! Maybe I will use these on my future theme :)</description>
		<content:encoded><![CDATA[<p>Thanks! Maybe I will use these on my future theme <img src='http://wpengineer.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Christopher Ross</title>
		<link>http://wpengineer.com/1030/change-admin-pagination-on-posts-pages-and-comments/#comment-1031</link>
		<dc:creator>Christopher Ross</dc:creator>
		<pubDate>Mon, 20 Apr 2009 12:44:21 +0000</pubDate>
		<guid isPermaLink="false">http://wpengineer.com/?p=1030#comment-1031</guid>
		<description>Very cool Frank! 

In the past I&#039;ve noticed that the admin tool is a big of a resource pig compared to the front (especially when using a cache script), I&#039;m curious if this hack will help relieve some of the strain it&#039;s putting on my server.</description>
		<content:encoded><![CDATA[<p>Very cool Frank! </p>
<p>In the past I've noticed that the admin tool is a big of a resource pig compared to the front (especially when using a cache script), I'm curious if this hack will help relieve some of the strain it's putting on my server.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

