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

Andrew Nacin wp at andrewnacin.com
Sun Apr 18 21:05:26 UTC 2010


>
> I would replace

if (strpos($link,'financial-terms/')!==false)

with

if ( 'financial-term' == get_post_type($id) )


Or, just committed to trunk this morning:

if ( is_post_type( 'financial-term', $id ) )


More information about the wp-hackers mailing list