Viewing 2 replies - 1 through 2 (of 2 total)
  • dralezero

    (@dralezero)

    If you use $currow = $wpdb->get_row($curquery); instead it will grab that one row directly into your variable instead of as a result set. Right now you are grabbing the result for the post as a result set and then not accessing the row. (Im pretty sure that’s right).

    Have you been looking at this?
    http://codex.wordpress.org/Displaying_Posts_Using_a_Custom_Select_Query

    It shows how to inner join the two tables to grab everything in one query to loop through.

    Thread Starter nadine00

    (@nadine00)

    I was looking at JOIN, I’m not sure how it would be worked into my current query setup tho. I can tinker with is a bit, but if you have any suggestions on formatting, I would appreciate it. Also thanks for the note on $currow. I will try it out! 🙂

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Query Help’ is closed to new replies.