rtMedia icon indicating copy to clipboard operation
rtMedia copied to clipboard

Multiple shortcodes cannot work on the same page

Open Utsav-Ladani opened this issue 2 years ago • 1 comments

Multiple shortcodes cannot work on the same page

  • rtmedia_gallery shortcode is not working correctly when adding it more than once.
  • Reason behind this is the pagination is designed that way.
  • Tried to fix this and was able to with backbone.js, but it works only for the Load More type pagination.
  • 1,2,3...6 numerical pagination is based on the URL. All data is loaded using the URL /pg/2/.
  • In this case, two different shortcodes with different pages will not work.
  • So this PR adds restriction and prevents the shortcode from generating output if It is used more than once.

Utsav-Ladani avatar Jul 24 '23 12:07 Utsav-Ladani

@Pradeep1308 Can you please share the visual of the issue and fix you added? This will help us to replicate and cross check.

CC @pavanpatil1

kjnanda avatar Jul 25 '23 05:07 kjnanda