WordPress.org

Ready to get started?Download WordPress

Forums

I Make Plugins
Shortcode does not reset loop (2 posts)

  1. kpgraham
    Member
    Posted 1 year ago #

    Thanks for a very useful plugin.

    Please add at line 374 (just before the shortcode_implist() return)

    wp_reset_postdata();

    Currently the plugin does not reset the query after getting the list of plugins. As a result, any comments left on the page where I put the plugin list shortcode go to the page for the last plugin listed.

    Resetting the postdata will return the loop to the current page and comments will find their way to the right post.

    I added the reset at line 210 (in update_plugins()) as well, just to be sure.

    thanks,

    Keith

    http://wordpress.org/extend/plugins/i-make-plugins/

  2. kpgraham
    Member
    Posted 1 year ago #

    I had to add the line

    wp_reset_postdata();

    to this 1.2.2 version before installing. It broke the loop again and the comments for the i-make-plugins page were going to the page for the last plugin in the list.

    Keith

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.