Custom query using WP_Query is not working
Its not clear what the goal is here, but here are some suggestions: In general, the pre_get_posts hook is not a good place to instantiate a secondary query to display HTML. Your current setup will result in an infinite-loop, because when you instantiate WP_Query within the pre_get_posts callback, you will instantiate it recursively, until you … Read more