i'm triyng to build a dynamic sidebar using conditional tags:
<?php if(is_page('24')): ?> /* i'm on the page with ID 24, then print something */
but if my post is splitted with <!--nextpage--> in the second page i want print out something else. I don't know how check this. I've tried with;
<?php if(is_page('24') && $page=2) : ?>
but don't works for me.