Timeline for wp_query for the first sticky, then display the rest of the posts excluding the first sticky
Current License: CC BY-SA 3.0
11 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Oct 25, 2012 at 23:21 | vote | accept | davebowker | ||
Oct 25, 2012 at 23:21 | |||||
Oct 21, 2012 at 9:11 | history | edited | Mridul Aggarwal | CC BY-SA 3.0 |
bugfix
|
Oct 20, 2012 at 23:42 | comment | added | davebowker | let us continue this discussion in chat | |
Oct 20, 2012 at 23:41 | comment | added | Mridul Aggarwal | that means the error is with the page template condition. It's not used correctly. What is the template file you're using? | |
Oct 20, 2012 at 23:35 | comment | added | davebowker | Error fixed now, but the second while loop is picking up the default wp_query of the page. EG, it gets the sticky in the first loop, then the page title in the second, not the list of results in the same query that aren't stickied. | |
Oct 20, 2012 at 23:30 | comment | added | Mridul Aggarwal | i removed the caching functions, can you see once again | |
Oct 20, 2012 at 23:27 | history | edited | Mridul Aggarwal | CC BY-SA 3.0 |
removed caching
|
Oct 20, 2012 at 23:24 | comment | added | davebowker | Yes, and I saw you just made an edit so I tried your new code and it's still throwing the same error. | |
Oct 20, 2012 at 23:22 | comment | added | Mridul Aggarwal |
Did you put the correct template filename here !is_page_template('template-file-name.php') ?
|
|
Oct 20, 2012 at 23:12 | comment | added | davebowker | Trying this, but it's throwing an error: Fatal error: Call to a member function have_posts() on a non-object. I tried to debug but I'm not really familiar enough with pre_get_posts | |
Oct 20, 2012 at 22:40 | history | answered | Mridul Aggarwal | CC BY-SA 3.0 |