WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. macemmek
    Member
    Posted 1 year 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.

    http://wordpress.org/extend/plugins/gallery-plugin/

  2. macemmek
    Member
    Posted 1 year 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
    Member
    Plugin Author

    Posted 1 year ago #

    Hello,

    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,
    Oksana

  4. macemmek
    Member
    Posted 1 year ago #

    Hello,

    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

About this Topic