Gallery by BestWebSoft
[resolved] [Plugin: Gallery] Shortcode not working on the page translated with WPML plugin (4 posts)

  1. macemmek
    Posted 3 years ago #

    Hello, I have a weird problem. I'm using a shorcode on regular WP page, let's say [print_gllr id=662] on /portfolio page. Everything works ok so far.

    Then I'd like to embed the same gallery on a page that is translated with WPML plugin: /en/portfolio. Unfortunately instead of a bunch of thumbnails, I get an info: "Sorry - nothing to found."

    What happens? Why the gallery and/or the images were not found?
    Please, help.


  2. macemmek
    Posted 3 years ago #

    Well, I found so far, that the 870 line of gallery-plugin.php makes the difference:

    'p' => $id,

    When removed - gallery works on default and "en" version as well. But what are the side effects...?

  3. bestwebsoft
    Plugin Author

    Posted 3 years ago #


    It is impossible to remove current string. The shortcode work is based on displaying specified gallery. Which exactly we are identifying via id which you are provide in the shortcode. If you will remove id from the shortcode functionality then 1 gallery only will be displayed. The shortcode works regardless of /portfolio or /en/portfolio. It is possible that WPML plugin itself adding some changes in the content and that is why plugin's functionality works incorrectly.

    Will be very helpful if you provide URL of the page.

    Best regards,

  4. macemmek
    Posted 3 years ago #


    the site was http://www.masterkids.pl/en/gallery/, however the client finally decided to have another type of gallery, therefore I can't show running example of the former.

    Many things are outdated in that installation, so maybe there was the problem.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Gallery by BestWebSoft
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic