Where should I hook to get the more tag recognized?
-
I’ve been banging my head literally the whole week and I just hit a wall.
Before asking why get_the_content() makes ANOTHER call to the DB ( as my humble understanding and honest 1 week reading of the wp includes tell me) I’ll start asking:
Where should I inject the filtered $post->post_content so following behaviors that take decisions based on whether the
<!--more-->
tag is found or not can read it?The function works, and it’s currently returning the modified post hooked to “the_post” action, retrieving the right post_content… but for no following function to see it!
I honestly believed a) reading the DB the fewer times was one of the main goals and b) functions were designed to take what previous functions output, so most default filters can be applied to it too.
As I see it right now I have to replicate the whole “the_content()” behavior and “the_excerpt” too, because it also depends on the more tag.
- The topic ‘Where should I hook to get the more tag recognized?’ is closed to new replies.