WordPress.org

Ready to get started?Download WordPress

Forums

Can Anyone Tell Me Why One Code Is Working and Another Is Not Working (1 post)

  1. Rajnish K.
    Member
    Posted 1 year ago #

    Can Any one tell me why this is working :
    <?php echo get_permalink(get_adjacent_post(false,'',false)); ?>
    And this one is not working:
    <?php $nextpermalink = get_permalink(get_adjacent_post(false,'',false)); ?>

    Actually I want to set the value as variable so I can compare it in if() statement.

    Thanks.

Topic Closed

This topic has been closed to new replies.

About this Topic