[wp-hackers] Need Custom Post Type Rewrite Help, Please

scribu scribu at gmail.com
Sun Apr 18 09:17:38 UTC 2010


Maybe something like this:

foreach ( $pages as $page )
    add_rewrite_rule('http://example.com/' . $page->page_name,
'?post_type=x&p=' . $page->ID, 'top');


Not sure wether you need to have 'http://example.com/' at the beginning or
not.


-- 
http://scribu.net


More information about the wp-hackers mailing list