display url from custom WordPress table

  • Unknown's avatar

    Hi

    I can display with the code below the rows from my mysql table I would like to display the url to open a specific page for each row with rewrite url (better than page.php?id=XXX)

    Using if possible the post page template of WordPress

    Thanks for your help

    global $db;
    $row = $db->get_results( "SELECT * FROM table1 order by Name");
    foreach ( $row as $rows ) 
    {
    echo '<a href="'.$rows->Name.'-'.$rows->ID.'">'.$rows->Name.'</a><br />';
    }

    The blog I need help with is: (visible only to logged in users)

  • Unknown's avatar

    This is not possible on a free wordpress.com website. It looks you are talking about a wordpress.org website. Their support is at https://wordpress.org/support/forums/

  • The topic ‘display url from custom WordPress table’ is closed to new replies.