MP + WPML + Widget logic not working

Home Forums MapPress Support MP + WPML + Widget logic not working

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #11493

    Hello,

    I have WPML and translated pages. In main language (pl) map located in footer (widget) is working fine (pulled from post  p=23 and widget logic set for ICL_LANGUAGE_CODE == ‘pl’ ). Same thing for German translation, map pulled from post p=3758 and widget logic set like ICL_LANGUAGE_CODE == ‘de’ but i’ve got only ocean. Maps in related posts are ok.

    You can check this here:

    PL:  http://www.villagreta.pl/noclegi-sudetach/

    DE: http://www.villagreta.pl/de/unterkunft-sudeten/

    If  DE is not working try this:  http://www.villagreta.de/unterkunft-sudeten/

    Thanks for any info.

    #11500
    Chris
    Keymaster

      Hi,

      I traced it, but I can only see that the query isn’t returning any result.

      MapPress uses the WordPress query functions, so I can’t tell you if it’s a problem in the plugin or something else in the blog.

      Here’s some suggestions to narrow it down:

      1) Deactivate ALL of your other plugins for a minute, and switch to a standard theme like 2012. If that works, then it’s a conflict with another plugin (WPML, perhaps?)

      2) Rather than using the widget, try putting PHP to generate the map directly in your template’s footer:

      <?php echo do_shortcode('[mashup query="p=23"]'); ?>

      Also, add a line to just print out the query result – that way you’ll know if it’s an issue with the map or with the query:

      <?php
      $wpq = new WP_Query(‘p=23’);
      echo “Query: “;
      print_r($wpq—>posts);
      ?>

    Viewing 2 posts - 1 through 2 (of 2 total)
    • You must be logged in to reply to this topic.