Вопрос

I am after adding dynamically the <--nextpage--> tag only on mobile, to posts. It appears that hooking to the_content is too late, as nextpage is being decided on "the_post()" phase.

I found some code that would do that on "the_content", but, at the_post phase, $content is not available for manipulation.

I would really appreciate if you could write the relevant php code to hook/filter the right phase and be able to dynamically insert the <--nextpage--> on posts that are viewed on mobile.

I'm using wordpress + thesis2, editing custom.php for hooks/filters/functions.

Thank you in advance,

Ronen.

Это было полезно?

Решение

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top