Skip Navigation

Shortcode displays info for view loop item instead of current page in manual AJAX pagination

Resolved

Reported for: Toolset Views 2.2.1

Resolved in: Toolset Views 2.3

Symptoms

When you have a view with manual AJAX pagination, that also includes a shortcode with id="$current_page" in the view loop, for example:

[wpv-post-slug id="$current_page"]

the shorotcode displays information for the loop item, instead of the current page.

Workaround

This issue will be fixed in the next release of Toolset Views.

In the meantime, you can download this file, extract it and replace toolset.object.relationship.class.php in /wp-views/embedded/toolset/toolset-common/inc/ folder.

Note: If you have other Toolset plugins activated, you have to replace the same file in these plugins folders as well:

  • If Toolset Types is activated, replace toolset.object.relationship.class.php in /types/library/toolset/toolset-common/inc/ folder.
  • If Toolset CRED is activated, replace toolset.object.relationship.class.php in /cred-frontend-editor/embedded/toolset/toolset-common/inc/ folder.
  • If Toolset Layouts is activated, replace toolset.object.relationship.class.php in /layouts/toolset/toolset-common/inc/ folder.
  • If Toolset Access is activated, replace toolset.object.relationship.class.php in /types-access/toolset/toolset-common/inc/ folder.

Please remember to keep a backup before doing this.

Comments are closed