Support » Fixing WordPress » Redirect to random child page

  • I need to fix this template code so it sends a visitor a php header with random child page location.

    <?php
    /*
    Template Name: Redirect to Random Sub
    */
    
    echo wp_list_pages('child_of='.$post->ID.'&title_li=');
    
    /* header('Location: '); */
    ?>

    Thx.

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Redirect to random child page’ is closed to new replies.