How to edit specific title instead of all the title calls
There are several ways to achieve this, none of them elegant. That’s because there is no general way to know exactly where get_the_title was called. (1) Not completely foolproof, but possibly enough in your scenario would be to add is_main_query to your conditions. That would rule out titles generated in secondary loops. However, if the … Read more