File Quotes in A HREF tag broken

This topic is: not resolved

This topic contains 3 replies, has 2 voices, and was last updated by  tiredofit 3 years, 2 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #161150

    tiredofit
    Member
    Post count: 1

    Tried a few other things, still can’t seem to figure this one out. Anyone?

    #161151

    If <pre>Profile: <a href=<?php echo $logbook_graph; ?> > <?php echo $logbook_graph; ?> </a></pre> doesn’t work, can you post the code that is generating $logbook_graph, and where it’s called from (helper, page, or template). Also the fieldtype that it is being pulled from, as I have experienced differences between handling of single vs para vs code fieldtypes.

    In my code suggestion I’ve deliberately omitted the quotes surrounding the url to avoid further confusing the quotes issue, but it should still parse correctly in a browser. If you post the results of that back here, please can you insert some dashes or something between h-t-t-p, as urls get changed when posted here.

    #161149

    tiredofit
    Member
    Post count: 1

    Hello, using 1.84 I am pulling the name of a filename from my field.

    Code is as follows:
    <pre> Elevation and Distance Profile:<A HREF"<?php echo $logbook_graph; ?><?php echo $logbook_graph; ?></A></pre>

    The output in HTML is as follows:
    <pre>Elevation and Distance Profile:<a href="" http:="" http://www.tiredofit.ca="&quot; wp-content="" uploads="" 2009="" 11="" 2009-09-14t17_0.gpx="">http://www.tiredofit.ca/wp-content/uploads/2009/11/2009-09-14T17_0.gpx</a></pre&gt;

    it seems to be turning the /’s into ""’s. How can I stop this?

    #161152

    tiredofit
    Member
    Post count: 1

    Removing the quotes fixed it!

    Didn’t give me the result I was expecting (Was hoping for a plugin to parse the A HREF tag and display a graph using XML Google Maps, but thats a whole other ball of wax :>)

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

You must be logged in to reply to this topic.

Wordpress Cloud Hosting