<?xml version="1.0" encoding="UTF-8"?> <rss
version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:wfw="http://wellformedweb.org/CommentAPI/"
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/"
xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
> <channel><title>gHacks Technology News &#124; Latest Tech News, Software And Tutorials &#187; comment hack</title> <atom:link href="http://www.ghacks.net/tag/comment-hack/feed/" rel="self" type="application/rss+xml" /><link>http://www.ghacks.net</link> <description>A technology news blog covering software, mobile phones, gadgets, security, the Internet and other relevant areas.</description> <lastBuildDate>Sat, 11 Feb 2012 09:52:46 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.1</generator> <atom:link rel="hub" href="http://pubsubhubbub.appspot.com"/><atom:link rel="hub" href="http://superfeedr.com/hubbub"/> <item><title>WordPress Hack: Change Number Of Comments Per Page In Admin Interface</title><link>http://www.ghacks.net/2008/12/17/wordpress-hack-change-number-of-comments-per-page-in-admin-interface/</link> <comments>http://www.ghacks.net/2008/12/17/wordpress-hack-change-number-of-comments-per-page-in-admin-interface/#comments</comments> <pubDate>Wed, 17 Dec 2008 13:10:57 +0000</pubDate> <dc:creator>Martin Brinkmann</dc:creator> <category><![CDATA[The Web]]></category> <category><![CDATA[blog software]]></category> <category><![CDATA[comment hack]]></category> <category><![CDATA[moderate comments]]></category> <category><![CDATA[wordpress]]></category> <category><![CDATA[wordpress comment hack]]></category> <category><![CDATA[wordpress comments]]></category> <category><![CDATA[wordpress hack]]></category> <category><![CDATA[wordpress tips]]></category> <guid
isPermaLink="false">http://www.ghacks.net/?p=9116</guid> <description><![CDATA[WordPress is displaying 20 comments per page in the admin interface. This might not be a problem for users who usually get a handful of comments per day but it forces webmasters with hundreds of comments per day to flip through the pages quite often. The 20 comments per page figure is actually the figure [...]]]></description> <content:encoded><![CDATA[<p>WordPress is displaying 20 comments per page in the admin interface. This might not be a problem for users who usually get a handful of comments per day but it forces webmasters with hundreds of comments per day to flip through the pages quite often. The 20 comments per page figure is actually the figure for both the approved comments and the comments identified as spam.</p><p>Another thing that is really annoying in WordPress 2.7 is the fact that you can either delete all comments on the page, selected comments or all spam comments at once. At 20 spam comments per page and thousands in total this can take a long time to flip through and delete.</p><p>The WordPress hack is actually quite easy to perform even for webmasters who have no knowledge whatsoever regarding html and php. The file that is responsible for the amount of comments that are displayed is called edit-comments.php. It can be found in the wp-admin folder. Make sure you backup that file before you apply the changes so that you can revert back if something should go wrong.</p><p><span
id="more-9116"></span>Locate the following line in the file, it should be around line 182 in the file:</p><p><code>$comments_per_page = apply_filters('comments_per_page', 20, $comment_status);</code></p><p>The only thing that you need to do is to change the figure 20 to another figure, e.g. 100 so that it looks like this:</p><p><code>$comments_per_page = apply_filters('comments_per_page', 100, $comment_status);</code></p><p>Just save the file again and check the display of the comments in the admin interface to make sure everything is working correctly.</p> ]]></content:encoded> <wfw:commentRss>http://www.ghacks.net/2008/12/17/wordpress-hack-change-number-of-comments-per-page-in-admin-interface/feed/</wfw:commentRss> <slash:comments>8</slash:comments> </item> </channel> </rss>
