WordPress.org

Ready to get started?Download WordPress

Forums

Basic Google Maps Placemarks
[resolved] UHow to use shortcode on header.php (4 posts)

  1. rankxeros
    Member
    Posted 1 year ago #

    I would like to use the shortcode on header.php. This template part doesn't have slug.
    How can i to make this idea to work?

    Many thanks to all in advance.

    http://wordpress.org/extend/plugins/basic-google-maps-placemarks/

  2. Ian Dunn
    Member
    Plugin Author

    Posted 1 year ago #

    functions.php:

    add_filter( 'bgmp_map-shortcode-called', '__return_true' );

    header.php:

    echo do_shortcode( '[bgmp-map]' );
  3. rankxeros
    Member
    Posted 1 year ago #

    I Will try it when i'll back home. For the moment i just thank you so much.

  4. rankxeros
    Member
    Posted 1 year ago #

    Working fine, thanks a lot for the support.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.