WordPress.org

Ready to get started?Download WordPress

Forums

( ) next page function not working in my theme. (6 posts)

  1. pri2sh
    Member
    Posted 3 years ago #

    I'm using custom made theme with wordpress 3.0.1 but splitting page function ( <!--nextpage--> ) in not working in my theme. this function works when switched to other theme . <!--nextpage--> function make text below it invisible but the navigation is not seen.

  2. alchymyth
    The Sweeper & Moderator
    Posted 3 years ago #

    does your theme have 'wp_link_pages()' in the code?

    http://codex.wordpress.org/Function_Reference/wp_link_pages

  3. pri2sh
    Member
    Posted 3 years ago #

    no , so where should i put that code ?
    or what can i do next to get it done.

  4. alchymyth
    The Sweeper & Moderator
    Posted 3 years ago #

    the code belongs before the 'endwhile;' of the loop - in all template files of your theme, where you want to show it - index.php, single.php, page.php, etc (if they exist in your theme);
    where exactly to add it to the code depends on your design and your ideas of styling it.

  5. pri2sh
    Member
    Posted 3 years ago #

    i looked at code of twenty ten but got nothing, i wonder what i missed ? can you please put code and default css , i don't need fancy styles .

  6. pri2sh
    Member
    Posted 3 years ago #

    i'm not talking about this code ,

    <div class="nav-previous"><?php previous_post_link( '%link', '<span class="meta-nav">' . _x( '&larr;', 'Previous post link', 'twentyten' ) . '</span> %title' ); ?></div>
    					<div class="nav-next"><?php next_post_link( '%link', '%title <span class="meta-nav">' . _x( '&rarr;', 'Next post link', 'twentyten' ) . '</span>' ); ?></div>

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.