WordPress.org

Ready to get started?Download WordPress

Forums

TW Recent Posts Widget
[resolved] bug fix (7 posts)

  1. Dwenaus
    Member
    Posted 1 year ago #

    on line 159 of your plugin tw-recent-posts-widget.php the last thing you should do in widget() is wp_reset_query(); otherwise plugins that insert things further down or in the plugin will have the wrong $post

    this post is also quite helpful. http://wordpress.stackexchange.com/questions/1753/when-should-you-use-wp-query-vs-query-posts-vs-get-posts you might not want to use new WP_Query in the widget.

    http://wordpress.org/extend/plugins/tw-recent-posts-widget/

  2. tweetysha
    Member
    Plugin Author

    Posted 1 year ago #

    Thanks for your comment.
    I agree with you, so I added two WordPress functions to reset all data.
    wp_reset_query();
    wp_reset_postdata();
    These changes will be available from version 1.0.2

  3. hartmutnz
    Member
    Posted 1 year ago #

    Hi, thanks for the plugin. It installed ok. Now I have 2 Issues: 1: Thumbnails show up larger than the options set. 2: I can only choose 1 Category? I need to be able to show entries from ALL categories, this option is missing. (And I don't want to insert a widget for each category because I have a lot of categories) Is there a way to fix all this? (I am using the 2011 theme with the PINUP theme added.)Thanks.

  4. tweetysha
    Member
    Plugin Author

    Posted 1 year ago #

    Hi,

    1. Images are displayed with WordPress function the_post_thumbnail() and image size is based on your Media Settings under WordPress Settings.
    Also, if you are creating custom thumbnail in your theme with WordPress function add_image_size() that dimension will be useful too.
    For example, if you set image width and height in your widget instance to some value that is not proportional to your custom images size, that dimension will not be output properly (as in your case).

    2. I will create new version of plugin which will have this option to select all categories.

    Regards,
    Igor

  5. hartmutnz
    Member
    Posted 1 year ago #

    Thanks for the fast reply! I have set the thumbnail size in MEDIA to 150px x 150px . But the TW widget shows 300 x 300 px ... not sure why. Can I change that somehow? Thanks for considering the Categories idea, I think it is a good idea to have the option of including more than 1 category or "all", thanks for your good work! Hart

  6. tweetysha
    Member
    Plugin Author

    Posted 1 year ago #

    The original idea was to show posts from one category.
    This option to select all categories sounds good to me, but option to select few categories is not.

    I do not know why image is not displayed as you defined.
    In my case, I also have thumb size 150x150, and when I set it in widget to be 60x60, this image 150x150 is used, but its width and height is set to 60px as in widget.

    Can you send me URL of your website so I can try to exam it?
    You can email me on igor[at]vuckovic[dot]biz too.

  7. Dwenaus
    Member
    Posted 1 year ago #

    signing off of this thread

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.