Viewing 1 replies (of 1 total)
  • Thread Starter projectfuturism

    (@projectfuturism)

    OK, so I solved it using the $_GET function.

    <?php
    
    $page_display = $_GET["c"];
    
    if ($page_display == showcase) {
        require('profile_showcase.php');
    } elseif ($page_display == reviews) {
        require('profile_reviews.php');
    } elseif ($page_display == directions) {
        require('profile_directions.php');
    } elseif ($page_display == contact) {
        require('profile_contact.php');
    } else {
        require('profile_about.php');
    }
    ?>

    It does the trick, but does have a few drawbacks which I am working on.

Viewing 1 replies (of 1 total)
  • The topic ‘Custom Post Type – Sub URL's’ is closed to new replies.