It *should* output a bunch of posts belonging to that same child category. Instead it outputs every single post ever.
But if I replace $childcat
in the second one with the name or ID of the child category that is being echo’d above, it works perfectly. Just can’t get that variable to work in the second query.