WordPress.org

Ready to get started?Download WordPress

Forums

Adjustly Nextpage
recommended for everyone (1 post)

5 stars
  1. Moogle Stiltzkin
    Member
    Posted 1 year ago #

    for bloggers who will post long articles, it's always best to split these into separate pages so the user does not have to scroll down seemingly indefinitely.

    however posting on the front page isn't similar to creating pages. so the usual trick is to do a nextpage, which means although your editing a single post, it will split the content to show visually as separate pages.

    problem though was that wordpress removed nextpage from the visual editor which most of us use.

    So that is where this plugin comes in, and it does what it says.

    You could before have added nextpage in by modifying functions.php and adding the following code

    // Start Add NextPage Button
    
    // --------------------------------------------------------------------------
    
    add_filter('mce_buttons','wysiwyg_editor');
    
    function wysiwyg_editor($mce_buttons) {
    
    $pos = array_search('wp_more',$mce_buttons,true);
    
    if ($pos !== false) {
    
    $tmp_buttons = array_slice($mce_buttons, 0, $pos+1);
    
          $tmp_buttons[] = 'wp_page';
    
          $mce_buttons = array_merge($tmp_buttons, array_slice($mce_buttons, $pos+1));
    
      }
    
    return $mce_buttons;
    
    }
    
    // --------------------------------------------------------------------------
    
    // End Add NextPage Button
    
    // --------------------------------------------------------------------------

    Although i prefer just installing this plugin, so i don't have to constantly remember to manually edit the file whenever i update wordpress.

    so kudos for this plugin :}

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.