Timeline for Pagination only won't work in author template
Current License: CC BY-SA 3.0
7 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Aug 29, 2012 at 15:37 | history | edited | Milo | CC BY-SA 3.0 |
added 16 characters in body
|
Aug 28, 2012 at 17:44 | comment | added | dev-jim | Okay...figured it out. Turn out I need to add $query-> to is_author and is_main_query. and return to $query. Anyway, thanks again @Milo. | |
Aug 28, 2012 at 16:46 | comment | added | dev-jim | yes...the menu become normal when I comment out the action. And I also discover that, this problem appeared to logged in user only. | |
Aug 28, 2012 at 16:43 | comment | added | Milo |
using is_main_query() should only apply the action to the page's main query, it doesn't sound like this is responsible for that behavior. can you verify that the menu returns to normal if you comment out the add_action line?
|
|
Aug 28, 2012 at 16:39 | comment | added | dev-jim | hi,just now I discovered that my menu from wp_nav_menu messed up with the code above. My custom menu was replaced by a new menu where display all of my created pages. why is this happened? and how to solve it? | |
Aug 26, 2012 at 9:38 | vote | accept | dev-jim | ||
Aug 25, 2012 at 18:54 | history | answered | Milo | CC BY-SA 3.0 |