I am needing to display posts in a particular order and have the mysql query returning results as needed however, I cannot seem to figure out where I need to add the code in. I would like to have 3 different custom queries depending on a variable passed to the index.php page, say sort=1, sort=2, and sort=3. Where do I place the add_filter calls and functions they add for joins, where, and orderby? I cant seem to find where the get_posts method is called in the process of a page loading. Any help is greatly appreciated!!!!
- The topic ‘Custom Query’ is closed to new replies.