Support » Plugin: GPX Viewer » How to add a track to an article

  • Resolved jhurteaux



    This plugin seems to do exactly what I want but I just don’t get it 🙂 (except the upload part which works fine).

    The documentation explains to add PHP code to include an existing track.
    Am I supposed to edit/upload PHP files?
    The code does not seem to work when adding it to an article from the standard admin/editor interface (which does not surprise me much).

    From the GPX files admin page (where we see the uploaded ones), could we not have the snippet of code that would be needed to add a specific track to an article?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter jhurteaux


    Ok, so I got it to work using a plugin for PHP code snippets.
    (from the 3 I tried, Post Snippets seems the best one with the option to enable parameters in a usable way)

    I think the extension usage would be greatly facilitated if this option was offered from the box, with the possibility to directly select one of the existing GPX files.

    • This reply was modified 8 months, 3 weeks ago by jhurteaux.
    Plugin Author axelkeller


    Sorry, I saw your post just today. I’m not informed from WP about the messages.

    With the version today (2.2.0) I added a shortcode that can be called from any WP-page.
    [gpx-view category=”<mycategory>” gpx-file=”<filename>”]

    I hope that helps.

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.