• This is my site:

    https://vistarewired.com/

    The problem is I don’t know how to limit amount of recent posts shown. Right now, it shows every single post I’ve ever written. As you can see, the list is getting quite long.

    Please help me out. Thanks =)

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter crazlunatic

    (@crazlunatic)

    oh ya the plugin used is called sidebar widgets

    It should stop expanding when reaches 10 (by default, I think).

    Thread Starter crazlunatic

    (@crazlunatic)

    ya but that is WAY too many, is there a way to limit that?

    You need to edit ../wp-content/plugins/widgets/widgets.php.

    First make a backup copy of the widgets.php in case something goes wrong.

    Find `function widget_recent_entries($args) {
    extract($args);
    $title = __(‘Recent Posts’, ‘widgets’);
    $r = new WP_Query(‘showposts=10’);`
    Change 'showposts=10' to whatever number of posts you like. Save the file and upload it.

    Thread Starter crazlunatic

    (@crazlunatic)

    that’s an awesome tip thanks. What if I want to edit more such as:

    – Put some kind of a line between each new topic
    – Place a bullet before each topic
    – Add space between each topic such as I have done so for my feature posts manually for the time being?

    Use the style sheet associated with whatever is generating your Upcoming events.

    Load your blog into your browser and show the source. Check the li tag and see if there’s a class modifying it. If so, find the css file and you should be able to style it there.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘sidebar widgets – recent posts’ is closed to new replies.