WordPress.org

Ready to get started?Download WordPress

Forums

Widget Logic
[resolved] Paged Post? (3 posts)

  1. lwaltzer
    Member
    Posted 2 years ago #

    I want a widget only to appear on the first page of a paged post (split with <!--nextpage-->), but can't figure out the order of the logic... help??

    http://wordpress.org/extend/plugins/widget-logic/

  2. alanft
    Member
    Plugin Author

    Posted 2 years ago #

    I googled this http://ifacethoughts.net/2006/05/03/page/

    which suggests you could use

    global $page; return ($page==1);

    or something very like it

  3. lwaltzer
    Member
    Posted 2 years ago #

    Thanks a bunch!

    This worked:

    global $page; return ($page==1) && is_single( 'post_id' );

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic