the hard part here is determining whether the permalink is for a category page or not.

We could do a strpos on the $link But then we wouldn't know whether that was a category or a page

/category/
/this-is-a-page

We may need to add code to the templates to determine this. which would require a bit more custom code. if your developers could get their head round the template part, to determine whether it's a cat page or not.

So instead of just the function above in functions.php we use another function to call it. but this function would be called in the templates

How do you rate me?

Thank you for rating your experience!

We’re thrilled to hear you had a great experience with . Would you like to leave a comment about your experience?
Thanks for voting on your experience with , we’d love to get some feedback please.
Ohh no! We’re really sorry to hear you didn’t have a pleasant experience with , we’re always looking at how we can improve and would appreciate you provide some further feedback here please.
Type your feedback here

it's great that you had a positive one. Based on your experience in this ticket would you please be kind enough to rate us externally on: