Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter vindic8r

    (@vindic8r)

    Thank you for the reply, @pdclark ! I appreciate it.

    At this link to my server, you’ll find my full functions.php, screenshots of my tokens and oum-location pod field structures. I’ve also included my debug.log, which is mysteriously missing most of the debug output I expected to see.

    I replaced my current aa_query_locations_by_token function with the one you provided and the page no longer loaded properly. I’m assuming that perhaps there’s nuance of my data structures that need to be considered? I’ve commented that version of the function out and replaced it with my original code, so that the page now renders. In the page source, I’m seeing this debug output, as expected:

    <!-- AA_DEBUG: FINAL {"hook":"locations_by_token","token":86681,"vars":{"posts_per_page":6,"paged":1,"post_status":"publish","post_type":"oum-location","orderby":"post__in","author":"","s":"","post__in":[86689,86690,86693,86694,86695,87429],"tax_query":[],"meta_query":[],"offset":0}} -->

    This output includes all 6 of the related locations.

    The shortcode test output on the page is powered by another function which uses the same query. Because the output is accurate, I believe I’ve proven that it’s not the query that is the issue, but something to do with the query hook not firing?

    Please let me know if there’s any further context I can share to help get to the bottom of this issue.

    • This reply was modified 8 months, 4 weeks ago by vindic8r.
    Thread Starter vindic8r

    (@vindic8r)

    Thread Starter vindic8r

    (@vindic8r)

    Thanks, Daniel! My mistake. I see now that the geocoder tool I used added new Latitude and Longitude columns to the CSV. I’m all set now.

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