Hello, I hope all is well.
I’m having an issue with a website of ours at the moment whereby no content is displaying on the single template (with or without an override). I have a query elsewhere on the site (in the sidebar) which does return the correct query info back, however.
The code in question is below. The query var is used because of a template / permalink arrangement and was working until recently. Is there anything you can think of that could be causing issues on the single template?
The ‘eventbrite_id’ is being pulled in correctly from the query_var and matches that on the Eventbrite site so I know a connection is being made. And of course the sidebar content is returning as intended.
// Broken code
$event = new Eventbrite_Query( apply_filters( ‘eventbrite_query_args’, array(
‘p’ => get_query_var( ‘eventbrite_id’ )
) ) );
// Working version
$events = new Eventbrite_Query( apply_filters( ‘eventbrite_query_args’, array(
‘limit’ => 2
) ) );
- You must be logged in to reply to this topic.