Created
April 26, 2016 13:44
-
-
Save mikejolley/6955ebc7a0a24c49150d30067b83b4f2 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function custom_job_post_type_link( $permalink, $post ) { | |
if ( $post->post_type !== 'job_listing' ) | |
return $permalink; | |
$permalink .= '-' . $post->ID; | |
return $permalink; | |
} | |
add_filter( 'post_type_link', 'custom_job_post_type_link', 10, 2 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment