I’m opening my posts in an iframe, and I’m using get_the_category_list
to list post’s categories. The problem is that when a user clicks on the category link, it opens in the iframe. How can I set the target for these generated links to be “_parent”?
Leave a Reply
You must be logged in to post a comment.
get_the_category_list
runs it output through the filterthe_category
. You could hook in there and change whatever you like. Something like this should work (untested):If you just need to have that list filter in certain spots, you can define the function above in a plugin or theme’s
functions.php
, then add the filter, callget_the_category_list
, and remove the filter.