Skip to main content
19 events
when toggle format what by license comment
Nov 28, 2014 at 11:27 history edited kaiser CC BY-SA 3.0
fixed styling, markup, upper-, lowercase stuff, etc.
Nov 28, 2014 at 11:24 history wiki removed kaiser
Nov 19, 2011 at 20:37 history edited Otto CC BY-SA 3.0
rewrite the answer to use the function calls in WP expressly designed to do these things
Nov 19, 2011 at 20:32 history edited Otto CC BY-SA 3.0
change the rewrite rule adding method to use the function call expressly designed for that purpose
Nov 19, 2011 at 20:07 history edited Geert CC BY-SA 3.0
Note about add_rewrite_rule()
Nov 19, 2011 at 19:59 history edited Geert CC BY-SA 3.0
Simplified add_query_vars()
Nov 19, 2011 at 18:36 history edited Geert CC BY-SA 3.0
Either an isset() or array_key_exists() check alone is enough
Feb 7, 2011 at 17:29 comment added Jan Fabry @codeisforeva: The index.php in the rewrite rule is the index.php in the root directory of WordPress, not the index.php in your template file. You can still choose which template should be displayed, by hooking into the template_include filter.
Feb 7, 2011 at 17:19 history edited Bainternet CC BY-SA 2.5
added 12 characters in body
Feb 1, 2011 at 21:17 comment added Bainternet not really beacuse you can manage all gets thrugh one file index.php
Feb 1, 2011 at 20:54 comment added codeisforeva Got it to work with index.php, much thanks for the help. Just seems weird you can't do this with other templates.
Feb 1, 2011 at 20:53 vote accept codeisforeva
Feb 1, 2011 at 14:52 comment added codeisforeva So its not possible to setup a custom template and pass custom vars to it in wordpress? I would think this would be a massive limitation of the platform.
Jan 31, 2011 at 22:20 comment added goldenapples @בניית אתרים looks like a very clear answer! @codeisforeva You shouldn't be calling the template file directly, should you? index.php is just the root file of wordpress, every rewrite rule should go through there.
Jan 31, 2011 at 20:46 comment added codeisforeva Problem is im not trying to pass the vars to index.php. Im trying to pass them to the custom template I have developed since it looks completely different from index. So if I pass values to moreauthor.php?author_more=johndoe .. that doesnt seem to work. Doing something wrong here?
Jan 31, 2011 at 20:32 comment added Bainternet i updated the answer
Jan 31, 2011 at 20:32 history edited Bainternet CC BY-SA 2.5
added 517 characters in body
Jan 31, 2011 at 20:03 comment added codeisforeva Ok so I added the query vars into the functions.php. Then added the other code to my more author posts. What would be the correct URL structure to pass these through? I know that paged uses the format of /page/2 but doing more-author-posts/more_author/johndoe doesnt' seem to be working?
Jan 31, 2011 at 19:02 history answered Bainternet CC BY-SA 2.5