문제

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