• Hi

    i was testing this plugin and it looks very promising but when i publish a map is a empty page. do you have any idea what is going wrong?

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Joe

    (@morehawes)

    Hi @madmaks,

    Thanks for reaching out and I am sorry to hear you are experiencing issues.

    I haven’t encountered this one before. The link you provided should display the Map Details page, but as you say there appears to be conflict with the theme.

    Some quick questions:

    1. Does Waymark behave as expected using an in-build theme?
    2. Does displaying Maps using the [Waymark map_id="123"] Shortcode word as expected?

    Unfortunately, because Waymark only has a certain amount of control over how it integrates with the themes, and themes are all very different, issues like this can arise.

    If you are comfortable with editing some files, I recommend creating your own theme file for the Map Details page:

    1. Always backup first and I recommend editing a child theme.
    2. In your theme you should have a page.php/post.php/index.php file. Copy one of these to your child theme and name it single-waymark_map.php. This filename tells WordPress it is the theme file for viewing a single waymark_map custom post type.
    3. When viewing the URL you provided, if WordPress has detected this theme file correctly any edits you make to it will only appear on the Map Details page.
    4. By default Waymark displays the Map and and Map Meta associated (description etc). You can output this content manually like so:
    // Just the Map...
    // Output the Map using the Shortcode
    echo do_shortcode('[Waymark map_id="' . get_the_ID() . '"]');
    
    // Meta too...
    // Create a Map object from the WordPress Post ID
    $Map = new Waymark_Map(get_the_ID());
    
    // Get any Meta
    $map_meta = Waymark_Helper::get_map_meta($Map);
    
    //Do we have something to display?
    if (sizeof($map_meta)) {
      echo Waymark_Helper::map_meta_html($map_meta);
    }

    Code adapted from here. I hope you find this helpful and I apologise it is quite technical. If this is beyond your comfort level please do let me know and I will be happy to try to come up with an easier solution.

    Normally if someone reaches out with an issue there are another 9 who had the problem and didn’t reach out, so I would definitely like to get this resolved if possible! ??

    Cheers,

    Joe

    Thread Starter madmaks

    (@madmaks)

    thanks for the quick response, here are my answers;

    1; yes using the theme twenty twenty four does show the page correctly

    2; yes a post with the shortcode shows the map

    I don’t have access to the server for this site only admin rights in wp, so i can not try to make a new php page in the childtheme

    Greetings

    Tim maks

    Plugin Author Joe

    (@morehawes)

    Hi @madmaks,

    I had another look at your page and it doesn’t look like you have Waymark activated anymore :-/

    Unfortunately, as I am unable to replicate your issue on my end and if you are not able to made edits to the code this is a little hard for me to diagnose or know what to suggest.

    If you are happy to provide a copy of the theme for testing purposes then I would be happy to investigate further. You can connect with me directly here.

    Cheers,

    Joe

    Thread Starter madmaks

    (@madmaks)

    yesterday with some testing I screwed things up so we had use a back-up today. And with that back-up all the work of last days where lost, like the maps. ??

    I will install the plug-in again and when it is activated I will post it here.

    with the testing, basic theme work, seven hills Theme with no modification does not work, and my child theme of seven hills does not work also.

    thanks for being so quick in response!

    greetings

    Tim Maks

    Thread Starter madmaks

    (@madmaks)

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘map page is empty on a site with sevenhills theme’ is closed to new replies.