When does wordpress process <!–nextpage–>

when does <!–nextpage–> get processed by wordpress filtering. i am adding multiple paged posts in post content on the content_save_pre and this is good for rendering my shortcodes, but <!–nextpage–> doesnt get processed and shows up as an html comment

Related posts

Leave a Reply

2 comments

  1. I am not sure what you mean by rendering shortcodes at that stage, they are usually rendered when content is retrieved for display.

    nextpage tag is processed in setup_postdata() ( source ), which is called by the_post(). In other words – during Loop.

  2. As an update. content_save_pre does process <!–nextpage–> i had the <!–nextpage–> tag inside the shortcode function, once i moved them outside, all was good.