Adding nofollow to all the post links in get_posts with pre_get_posts or WP_Query

Question

Can it be done with pre_get_posts in functions.php file to change the output by get_posts queries on blog/site.

I found nothing about adding html attribute to anchor tag here:
https://developer.wordpress.org/reference/classes/wp_query/ https://developer.wordpress.org/reference/hooks/pre_get_posts/

0
, BlackFire 2 years 2019-11-19T19:21:30-05:00 0 Answers 73 views 0

Leave an answer

Browse
Browse