WordPress.org

Forums

jQuery Vertical Scroller
[resolved] the_ID() is altered (3 posts)

  1. mulli.bahr
    Member
    Posted 1 year ago #

    I am using the plugin's shortcode in page content. Works fine.
    BUT, it losses the current $post data.
    Most likely a bug. The $post of current post must be restored
    at the end of the plugin's code.

    Any solution?

    https://wordpress.org/plugins/jquery-vertical-scroller/

  2. mulli.bahr
    Member
    Posted 1 year ago #

    Here is the bug fix, as expected $post was not restored when using shortcode. You need to add a single line at the very bottom of:
    sg-jqvs-widget-plugin.php, just above the line with return statement.

    $post = $tmp_post; // restore $post
        return $myscroller;

    Good luck.

  3. Vamsi Pulavarthi
    Member
    Plugin Author

    Posted 1 year ago #

    Thank You for giving me the solution mulli.bahr. I will add this to the next version.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • jQuery Vertical Scroller
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.