Det skal lige sige at jeg bruger wordpress pluginnet Visual composer.
Kan det have noget med det at gøre?
Dette er koden som indeholder den kode som bliver genereret ved <!--nextpage--> tagget.
Er der noget her jeg skal rette ved.
fra filen: class-vc-frontend-editor.php
function getPageShortcodesByContent( $content ) {
if ( ! empty( $this->post_shortcodes ) ) {
return;
}
$not_shortcodes = preg_split( '/' . self::shortcodesRegexp() . '/', $content );
foreach ( $not_shortcodes as $string ) {
if ( strlen( trim( $string ) ) > 0 ) {
$content = preg_replace( "/(" . preg_quote( $string, '/' ) . "(?!\[\/))/", '[vc_row][vc_column width="1/1"][vc_column_text]$1[/vc_column_text][/vc_column][/vc_row]', $content );
}
}
echo $this->parseShortcodesString( $content );
}
/**
* @param $content
* @param bool $is_container
* @param bool $parent_id
*
* @since 4.2
* @return string
*/
function parseShortcodesString( $content, $is_container = false, $parent_id = false ) {
$string = '';
preg_match_all( '/' . self::shortcodesRegexp() . '/', trim( $content ), $found );
if ( count( $found[2] ) == 0 ) {
return $is_container && strlen( $content ) > 0 ? $this->parseShortcodesString( '[vc_column_text]' . $content . '[/vc_column_text]', false, $parent_id ) : $content;