Filtering ‘the_title’ with option to return subhead?

I am not sure I understand your issue right, but my guess is your conundrum – how to get to the title that is unchanged by your filter, if you are filtering it everywhere?

You can use get_post_field() function to get a raw copy of it from the post object.

However instead of messing with output (and making your saved data dependent on filters being present) I would recommend to work on splitting a title when saving post – assign first part to title as usual and tuck away second part into custom field.

Leave a Comment

error code: 523