How to display links in excerpt? [duplicate]
First, I would suggest that you combine your p and a tags into one line, like so: $text = strip_tags($text, ‘<p><a>’); Second, the remove_filter and add_filter should go in your functions.php file, not content.php…..move those lines to just below the $text = strip_tags….. I don’t think you need the line that has $main_content = apply_filters … Read more