Change recent posts in widget. (3 posts)

  1. hoborun
    Posted 8 years ago #

    Using a widgetized theme. One widget item is Recent Posts but it's limited to 15 max. Is there a way to increase this to say 25?

    I can't find where to do this in any of the themes files.


  2. Kafkaesqui

    Posted 8 years ago #

    You'd need to edit the widgets.php file in wp-includes/. Look there for the wp_widget_recent_entries() function, under which you'll find:

    else if ( $number > 15 )
    	$number = 15;

    You can edit this, or comment out these two lines. Source editing note: Make a back-up of the file before editing it, just in case.

  3. hoborun
    Posted 8 years ago #

    Thank you very much Kaf it worked great and good to see you on the forums.


Topic Closed

This topic has been closed to new replies.

About this Topic