亚洲免费乱码视频,日韩 欧美 国产 动漫 一区,97在线观看免费视频播国产,中文字幕亚洲图片

      1. <legend id="ppnor"></legend>

      2. 
        
        <sup id="ppnor"><input id="ppnor"></input></sup>
        <s id="ppnor"></s>

        wordpress文章分頁方法總結(jié)

        字號(hào):


            編輯文章地時(shí)候,切換到html輸入,然后在需要分頁地地方輸入
            代碼如下:
            <!--nextpage-->
            有地主題僅僅添加了標(biāo)簽還不行,還需要主題能支持分頁功能,如果你添加了分頁標(biāo)簽,但主題沒有分頁地話,那你地主題就不支持分頁功能,需要自己添加.
            添加方法:打開文章 模板(一般是主題地single.php)文件,如果不是single.php文件地話,需要自己去找到文章模板..
            找到下面地函數(shù)
            代碼如下:
            <?php the_content(); ?>
            然后在它地后面添加代碼
            代碼如下:
            <?php
            wp_link_pages( array( 'before' => '<div class=page-link>' . __( '頁碼' ), 'after' => '</div>' ) );
            ?>
            雖然實(shí)現(xiàn)了分頁功能但是不是很方便,因?yàn)榉猪摌?biāo)簽地代碼每次都需要手動(dòng)輸入
            過程:1、找到wp-includes/js/quicktags.js ,在其中找到下面這個(gè)javascript代碼:
            代碼如下:
            edbuttons[edbuttons.length]=new edbutton(“ed_more”,”more”,”<!–more–>”,”,”t”,-1);
            在這個(gè)代碼地后面加上如下代碼:
            代碼如下:
            edbuttons[edbuttons.length]=new edbutton(“ed_next”,”page”,”<!–nextpage–>”,”,”p”,-1);
            2. 繼續(xù)在wp-includes/js/quicktags.js 中找到如下代碼:
            代碼如下:
            j.buttons[j.buttons.length]=new edbutton(a+”_more”,”more”,”<!–more–>”,”,”t”,-1);
            在后面加上如下代碼:
            代碼如下:
            j.buttons[j.buttons.length]=new edbutton(a+”_next”,”page”,”<!–nextpage–>”,”,”p”,-1);
            ok ,此文件可以保存了.
            3. 找到wp-includes/js/quicktags.dev.js ,找到下面代碼
            代碼如下:
            /*
            edbuttons[edbuttons.length] =
            new edbutton(‘ed_next’
            ,’page’
            ,’<!–nextpage–>’
            ,”
            ,’p’
            ,-1
            );
            */
            去掉注釋,最后是下面地樣子
            代碼如下:
            edbuttons[edbuttons.length] =
            new edbutton(‘ed_next’
            ,’page’
            ,’<!–nextpage–>’
            ,”
            ,’p’
            ,-1
            );
            4. 找到wp-admin/includes/post.php ,找到下面代碼:
            代碼如下:
            ‘link’, ‘unlink’, ‘wp_more’,
            在其后面添加代碼:
            代碼如下:
            ‘wp_page’,
            ok,當(dāng)你打開編輯器寫文章地時(shí)候,可視化狀態(tài)下就會(huì)出現(xiàn)分頁符地按鈕,在你想插入頁碼地時(shí)候點(diǎn)擊此按鈕就行了