WordPress.org

Forums

pre_get_posts on a 'page' post not working as expected (2 posts)

  1. Robert Simpson
    Member
    Posted 2 years ago #

    Hi folks,

    I'm working with pre_get_posts in an effort to change the main query on a page post in order to instead show event listings, and running into some trouble (the page is 404ing on me).

    Here's my code: http://pastebin.com/dXf11Rv3
    Here's a copy of $query: http://pastebin.com/f99eGsWy

    Any ideas?

    Cheers,
    Rab

  2. Robert Simpson
    Member
    Posted 2 years ago #

    *bump*

Topic Closed

This topic has been closed to new replies.

About this Topic