“Notice: Undefined variable: content” is showing [closed]
Although the actual question is off topic, I would make a few alterations to the code to make it more reliable and a bit faster and less resource intensive: Add $content=””; right at the top of the function, this will take care off the Notice: Undefined variable notice Only get the term id’s from wp_get_post_terms(). … Read more