Forums

geourl function not working (5 posts)

  1. Stedi
    Member
    Posted 7 years ago #

    I try to use the Geo Plugin in my WP 1.5.
    Plugin is activated, Geographic Tracking Features enabled and
    plus default longitude & latitude values set up.

    When I use
    ">Locate sites near me with GeoURL
    in my template inside the loop.
    I get :
    Fatal error: Unknown function: print_geourl_url()

    What's wrong?

  2. Kafkaesqui
    Moderator
    Posted 7 years ago #

    It should be:

    <?php print_GeoURL_Url(); ?>

    Note the capitalization.

  3. Stedi
    Member
    Posted 7 years ago #

    I posted "HTML" accidentally.

    <?php print_Lat(); ?>
    <?php print_Lon(); ?>
    <?php print_GeoURL_Url(); ?>

    I've tried with the exact syntax found in the Codex, but still no luck.

  4. Kafkaesqui
    Moderator
    Posted 7 years ago #

    Stedi,

    I took a look at the plugin, and it appears the dev didn't go with the original Geo function names, instead choosing to use the WordPress "norm" for template tags that display data:

    the_GeoURL_Url()

    So any of the Geo print_ functions are now instead prefixes with the_. I'll have to make note of this on the Codex pages...

  5. Stedi
    Member
    Posted 7 years ago #

    Lon: <?php the_Lon(); ?>", Lat: <?php the_Lat(); ?>
    works fine!

    Thanks alot!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags