• I’ve switched to use this plugin because it supports <!–nextpage–> so I’ve updated overview file in single-book-storefront template to display paginated post properly and it works great inside the single-book-storefront.
    this is my update

    if(function_exists('st_remove_st_add_link')) { st_remove_st_add_link(''); }
     global $post; 
    //echo(apply_filters('the_content', $post->post_content)); orignial code
    $post = get_post();
    $paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
    echo($content = get_the_content($paged));

    I also have no problem in excerpt-book (single book shortcode)
    the problem is in the archive-book (All books shortcode/mybooktable view) it displays the pagination of the latest book (if it has overview pagination).
    Please advice

Viewing 1 replies (of 1 total)
  • Plugin Author zookatron

    (@zookatron)

    MyBookTable uses the “excerpt-book” templates on the archive page as well as in the single book shortcode when the display shortcode setting is set to Summary (it will use the single-book templates on the Default display setting). You may want to use the is_archive() function to query whether you want to display the pagination, like so:

    
    if(is_archive()) {
      \\ don't display pagination
    } else {
      \\ display pagination
    }
    

    ~Tim

Viewing 1 replies (of 1 total)
  • The topic ‘Adding pagination to overview section (about the book)’ is closed to new replies.