get_posts(‘tag=XXXX&category=NNNN’) Doesn’t retrieve anything
-
Hello,
I’ve been trying to get posts using the get_posts(‘tag=XXXX&category=NNNN’) but, it seems that I can’t use them together. I know that I have posts with the tag XXXX and I know that they are inside NNNN.
XXXX is a normal string, and category is a Number.
I’ve tried XXXX in uppercase (like the input) and lowercase (like the slug).
If I make a get_posts just with the tags and then iterate using get_the_category() then I confirm that the category NNNN is assigned to the post containing that TAG.
Could someone give me some lights?
Thanks in advanced,
P
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘get_posts(‘tag=XXXX&category=NNNN’) Doesn’t retrieve anything’ is closed to new replies.