• Dear team,
    we just released a new version of our website, and the new single post template (a custom post type) is designed to host the single map in a dedicated box (see the linked article as example).
    However, even if the location is selected and saved for each specific post, the global map is displayed, not the single map.
    So far, the [geo_mashup_map] shortcode is used.

    Thank you in advance for your support, I am available for any information.

    Regards,
    Pietro

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

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author Dylan Kuhn

    (@cyberhobo)

    Have you tried [geo_mashup_map map_content="single"]? It’s possible for a theme to break Geo Mashup’s automatic content detection.

    Thread Starter Pietro Costanzo

    (@pietro-costanzo)

    Dear Dylan,
    thank you for quick feedback. Yes, I tried before, and I reapplied the shortcode now, but tha map simply disappears.
    The theme is Newspaper by TagDiv: the new version of the website is based on the same theme, but we changed the layout. However, in the previous version, the map was embedded in a sidebar widget, while now it is embedded in a custom element of a custom post type.
    Any clue?
    Thank you in advance,
    regards
    Pietro

    Plugin Author Dylan Kuhn

    (@cyberhobo)

    The theme might be preventing Geo Mashup from getting the current post ID. You can check that by supplying it in the tag: [geo_mashup_map map_content="single" object_name="post" object_id="116771"].

    Thread Starter Pietro Costanzo

    (@pietro-costanzo)

    Dear Dylan,
    yes it works. May I ask you if is it possible to use this kind of shortcode in the post template, so that geo mashup can get the right post id as usual?

    Thread Starter Pietro Costanzo

    (@pietro-costanzo)

    Dear Dylan,
    just to better express my idea: is there a solution to get_the_id in the code?
    Thank you,
    regards
    Pietro

    Plugin Author Dylan Kuhn

    (@cyberhobo)

    WordPress has function for getting the ID that might cover some additional cases that Geo Mashup would miss, but also can be rendered useless by a theme.

    Thread Starter Pietro Costanzo

    (@pietro-costanzo)

    Dear Dylan,
    as far as I can understand, this is exactly the issue: the theme broke the capability of the shortcode to retrieve the post ID.
    Is there any action we can take together to fix it, operating on the plugin side?
    In case, feel free to get in touch by direct email ([email protected]).
    Thank you,
    regards
    Pietro

    Plugin Author Dylan Kuhn

    (@cyberhobo)

    You really need some cooperation from the theme in some form – it makes more sense to me to approach it from that end.

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘Single map not working on custom post type’ is closed to new replies.