• 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

    https://www.ads-software.com/extend/plugins/i-make-plugins/

Viewing 1 replies (of 1 total)
  • Thread Starter Keith P. Graham

    (@kpgraham)

    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

Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: I Make Plugins] Shortcode does not reset loop’ is closed to new replies.