Second loop in sidebar on category page not working
-
I’ve been cracking my brains on a problem, probably a stupid mistake I’m not seeing.
On category page for a specific category, in this case “Interview” I want to display the posts of the child categories of “Interview”. So category page would have two loops; one for posts from “Interview” and one in the sidebar for posts from child categories of “Interview”.I tried several codes but none works in the sidebar, I just get a blank sidebar. See code: https://pastebin.com/3ie75KSf If I echo some test text between the foreach loop it won’t print. Which means the foreach loop does not work. I can’t figure what I’m doing wrong.
Anyone any ideas?
Viewing 11 replies - 1 through 11 (of 11 total)
Viewing 11 replies - 1 through 11 (of 11 total)
- The topic ‘Second loop in sidebar on category page not working’ is closed to new replies.