has_category Wordpress -
I want to check in the Wordpress loop for a category called hyperlink and quote, because I will not display those categories < / P>
I checked the Wordpress site, but I'm still stuck. Which I have so far received:
hyacagrain (hyperlink, quote); -> It does not work!
hyacagrain (array (hyperlinks, quote);); -> It does not work either!
It seems that the proper syntax will be will_ category ('hyperlink') . I'm not sure if you have left the quote by mistake or if you do not know that they need to stay there. They need to be there.
In addition, it looks like the has_category (array ('hyperlink', 'quote')); will also work.
HH,
= C =
Comments
Post a Comment