On my WP website, I normally solely have one tag per put up.
Nevertheless, I now have some posts which have a second tag, “expired”, that I take advantage of for an additional objective.
So I want to regulate my code beneath to take away that “expired” tag earlier than I course of the one tag left.
It seems like I ought to be capable to use array_diff to take away the “expired” tag, based mostly on my studying of php.web and another stack trade posts.
Nevertheless, once I tried to implement that, I am getting this error: Deadly error:…