Hi. I don’t know wether or not this is a Sage issue or a WP issue, so I’ll just take the chance and post this here. I’m not an elite developer, so scanning through the Sage source files to solve this is, frankly, way over my head. It’s worth mentioning I have search “all over the net” regarding this for the last couple of hours and I’m getting mad now, as I can’t figure this out I wish to ask here, since I don’t want to break anything regarding Sage smart features.
I have registered a CPT named “store” and I try to filter out this data with a store category as argument. However, this don’t seem to work, neither with get_posts or WP_Query. Anyone got an idea way? The array returns empty.
Hi ruffian you could try this out, also it’s worth noting that the “post_type” arg is not the category name but rather the name you pass when you register_post_type().
@erikkowalski ! Hi. Thanks, but, maybe I was unclear. While using 'post_type' => 'store' only, it prints out everything I need. But if I do 'post_type' => 'store','cat' => 9,, nothing shows.