[wp-hackers] Custom Permalinks - how to?

Sam Angove sam at rephrase.net
Tue Jun 13 19:15:21 GMT 2006


On 6/14/06, Niels Hackius <niels at hackius.de> wrote:
>
> What it outputs in the rewrite-rule-Array is this:
> [index.php/gallery/(.+)/?$] => index.php?page_id=67&gallery=$matches[1]
>

That looks like the right rule to me. Does WordPress know about the
"gallery" query var? Something like:

function singaporeAddQueryVar($vars) {
	$vars[] = 'gallery';
	return $vars;
}
add_filter('query_vars', 'singaporeAddQueryVar');


More information about the wp-hackers mailing list