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:
- Does Waymark behave as expected using an in-build theme?
- 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:
- Always backup first and I recommend editing a child theme.
- 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.
- 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.
- 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