Forums

Help with linking to wordpress article (3 posts)

  1. tinem
    Member
    Posted 5 years ago #

    I have made this site http://www.tinemuller.dk/wholocations/bookcode/ and if you click the markers a link is made to this site http://www.tinemuller.dk/new_wordpress/ where all the articles can be seen.

    Now what I want is to make it dynamic so that it from each marker opens to the right article like for instance
    http://www.tinemuller.dk/new_wordpress/?p=11
    http://www.tinemuller.dk/new_wordpress/?p=16
    http://www.tinemuller.dk/new_wordpress/?p=17
    and so on. This information is in a field in the database called guid

    This is some of my code from map_data.php
    <? $info_html='<b>'.$row['name'].'</b><br />'.$row['adresse'].'<br />'.$row['postnummer']. ' ' . $row['location'].'<br />' .'<b>Position:</b> ' .$row['lat']. ', ' . $row['lon'].'<br /><br />' .' Link to more info. Something like <a href="http://www.toiletmap.gov.au/browse.aspx?type=area&id=6f950288-da86-450a-9171-e67f5b98c6df">this.</a><br><br>And maybe make a comment to a blog. Something like <a href="http://www.tinemuller.dk/new_wordpress/">this.</a>'; ?>

    Hope someone can help, please.

  2. tinem
    Member
    Posted 5 years ago #

    This is the information from the table new_posts in WordPress http://www.tinemuller.dk/div/new_posts.gif. Maybe this can help you help me.:-)

  3. tinem
    Member
    Posted 5 years ago #

    I have made a test on this site http://www.tinemuller.dk/wholocations/bookcode/test/ and in the database wholocations I made a filed called "wordpress" and in there I wrote "And maybe make a comment to a blog. Something like this." and in my map_data.php I encluded the new field like this
    .$row['wordpress'].
    and I could do this for the other markers lwith an absolute link to the exact article but there must be an easier way to do this.

    I have ONLY made it for the first marker and it's functioning the way I want.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.