WordPress.org

Ready to get started?Download WordPress

Forums

Recent Posts Plus
[resolved] Show a No posts message (2 posts)

  1. Aleph22
    Member
    Posted 1 year ago #

    Thanks a lot for the great plugin. It does exactly what i needed, except for one small thingy, which i guess is probably easily solved, although being a PHP newbie, i dont know how...

    At the moment when there are no posts in the category chosen, the widget shows no content (which is correct of course, but I'd like to replace this nothing with a somthing: f.e. A message saying: Sorry no content available at this moment, come back later.

    Is it possible to do this?

    I'd really appreciate any help

    http://wordpress.org/extend/plugins/recent-posts-plus/

  2. Aleph22
    Member
    Posted 1 year ago #

    Got it!

    just opened recent-post-plus.php in the plug-in folder and added the following code above wp_reset_postdata(); on line 211:

    else
    echo 'No posts at the moment';

    Simple solution, hope it might be of some help to someone else in the future.

    A

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic