michaelnason

Forum Replies Created

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • michaelnason
    Participant

    $mappress->l10n(); isn’t outputting anything for me for some reason:

    <?php
    global $mappress;
    $mappress->l10n();
    $mappress->print_maps();
    ?>

    I agree this isn’t an ideal setup, but I need to get this sorted for launch. We’ll develop a smarter way to do this soon after.

    michaelnason
    Participant

    Thanks, I got it working!

    Right now, I just copied var mappl10n from a different page with a map on it. Is that unwise? Should I dynamically generate this content? How?

    michaelnason
    Participant

    Hi Chris,

    Thanks. The page I’m having trouble with is a receipt-type page that is meant to be printed. The template for this view does not call wp_footer(), and no external scripts or stylesheets are loaded.

    If I add wp_footer() or do_action(‘wp_print_footer_scripts’), then my site’s stylesheet and all other scripts are loaded even though they should not be on this view (including mappress’s).

    Is there a way to selectively load MapPress resources for this template, or any other way I can work around this limitation?

Viewing 3 posts - 1 through 3 (of 3 total)