• Is there a way of creating a different template for the <!–nextpage–> ?

    So on the first page of your post it uses the single.php template and on the 2nd page of your post it uses single-2.php as the template?

Viewing 3 replies - 1 through 3 (of 3 total)
  • I’m not a WordPress guru, so I can only think of this:

    In your single.php, analyse the current url to see if this is a paginated post and also which page. Then according to that, show a different layout. Of course, this means your single.php code will be tied to your permalink structure.

    @honewatson – As near as I can tell, WP doesn’t have any sort of built-in template hierarchy to do what you’re after. Might be worth searching the plugins or doing something manual.

    Thread Starter honewatson

    (@honewatson)

    Ok cool. Thanks for the response. Does anyone know how I would code this manually?

    <?php if (its the first page of the post)

    echo “template one”;

    else echo “template two”;

    }

    ; ?>

    Many thanks in response.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘single.php <!–nextpage–>’ is closed to new replies.