[Resolved] Detect more link when filtering the_content
I’m trying to write a plugin that will display the content of a post up to the <!–more–> tag for all users (on the archive page) but that will only display the full post (on the single page) for registered users.
I’m trying to do this by showing the archive page as normal, but on the single page showing the content up to the <!–more–> tag and replacing the rest if the user isn’t registered/logged in.
However, it appears the <!–more–> link is processed before the ‘the_content’ filter is applied. Is there a way to catch the content first? Or is there another way to determine (on the single page) where the break occurs? Or is there a better way to achieve what I want?
Thanks in advance.
- The topic ‘[Resolved] Detect more link when filtering the_content’ is closed to new replies.