Timeline for Replace query_posts with pre_get_posts
Current License: CC BY-SA 3.0
8 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Apr 26, 2013 at 15:49 | history | edited | tfrommen | CC BY-SA 3.0 |
improved formatting
|
Apr 26, 2013 at 15:16 | vote | accept | Villalobos | ||
Apr 26, 2013 at 14:52 | review | First posts | |||
Apr 26, 2013 at 15:51 | |||||
Apr 26, 2013 at 14:48 | comment | added | Villalobos | and my error was from removing the above query_posts and inserting another code for pre_get_posts into functions.php | |
Apr 26, 2013 at 14:48 | answer | added | s_ha_dum | timeline score: 2 | |
Apr 26, 2013 at 14:45 | comment | added | Villalobos | I didn't said that the code above checks if the user is logged in. I have another code for that. This code just shows to the logged in users a a numbers of posts from a certain category. That's all . What I want is to convert the query_posts into pre_get_posts. I don't need a code to check if the user is logged in or smth. | |
Apr 26, 2013 at 14:40 | comment | added | kaiser | Please post your exact error message and what you've tried. The above code btw shows nothing that could be used to check if the user is logged in. | |
Apr 26, 2013 at 14:35 | history | asked | Villalobos | CC BY-SA 3.0 |