| bio | website | |
|---|---|---|
| location | London | |
| age | ||
| visits | member for | 9 months |
| seen | yesterday | |
| stats | profile views | 1 |
|
Jan 30 |
comment |
Using is_main_query to select custom post type on certain page Thanks for the trip about not having to append the $query-> calls. I tried targetting a specific page ID with your method, but when I try to load the page the 404.php template is loaded. However I think I was asking the wrong question for myself, I just need to use a secondary loop with WP_Query instead of trying to alter the main query in this case, since I need the page title info from it. I was using query_posts but I understand its better to use a new WP_Query. |
|
Jan 30 |
awarded | Student |
|
Jan 30 |
asked | Using is_main_query to select custom post type on certain page |