Viewing 3 replies - 1 through 3 (of 3 total)
  • You can do this pretty easily. Inside the loop, you check if post meta exists (note, you may not need the <?php part of your already in a php code block):

    <?php
    $redurl = get_post_meta( $post->ID, '_pprredirect_url', true );
    $redact = get_post_meta( $post->ID, '_pprredirect_active', true );
    if( $redact == '1' && $redurl != ''){
      // do something if the redirect exists (and is active).
    }else{
      // do something else if there is no redirect or if not active.
    }
    ?>

    We are adding a helper function to the plugin for the next upgrade, but this will work just the same.

    Warmest regards,
    Don

    Thread Starter camilo_blue

    (@camilo_blue)

    OK, Thanks Don Fischer great Job 😉

    You are welcome!

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Get Post Redirect’ is closed to new replies.