I am trying to query a category of posts from a post taxonomy called “A” into a multisite. The problem starts when The “$recent->ID” for every post is ==1 when i echo it… but if i echo “get_the_ID()” or “get_the_title()” or “get_permalink()”, it works fine. If i try to use get_field(), nothing comes through, and I think the reason might be tied to the fact that i can’t get $recent->ID to spit out the real ID.
If i use get_post_meta(), I can see the fields coming through but the values are blank..
BTW, I’ve used code like this in other areas of the site and it works fine. It’s just one particular place that it isn’t working (The theme used between parent and children multisite is the same, so they are all using the same functions.php taxonomies and post types).