Skip to main content
7 events
when toggle format what by license comment
Aug 7, 2017 at 6:11 history edited Johansson CC BY-SA 3.0
added 1 character in body
Jul 8, 2015 at 7:36 answer added Dronz timeline score: 0
Jul 8, 2015 at 0:46 comment added czerspalace Add the filter function code into the functions.php file in your twenty-twelve theme directory
Jul 8, 2015 at 0:41 comment added Dronz I see how to write the condition code for a filter function as in the second link. But I don't know where to add such code, or how to get it to run at the right time. I searched up wpa_parse_query in a few places on my site, but it's in dense machine-generated scripts as far as I've seen so far. My site is based on the twenty-twelve template. Any pointers to how to correctly insert such a condition for page requests?
Jul 8, 2015 at 0:03 comment added czerspalace The key points being to hook into the template_redirect hook so that you can safely redirect to another page, and within that hook you can check if the current page is an author page by calling is_author
Jul 8, 2015 at 0:02 comment added czerspalace A quick search on this site for 'redirect_author_pages' can help, one answer that may be able to help you out or point you in the right direction is wordpress.stackexchange.com/questions/14047/…
Jul 7, 2015 at 23:52 history asked Dronz CC BY-SA 3.0