Viewing 1 replies (of 1 total)
  • You can just use simple relative urls.

    <?php
    $the-entry = $_GET['entry'];
    
    if ( current_user_can('read_post', 122) ) { ?>
        <a href="/projects-edit/entry-<?php $the-entry; ?>/" >Back to Project</a>
    <?php } else { ?>
        <a href="/my-page/">Back to My Page</a>
    <?php } ?>
Viewing 1 replies (of 1 total)
  • The topic ‘retrieve variable from URL – $_GET’ is closed to new replies.