Can /%year%/%monthnum%/%day%/ structure tags be added to custom post type permalinks?

Yes, you should be able to use date based URLs by using the permalink_epmask parameter with your register_post_type call.. add_action(‘init’, ‘wpse14370_custom_init’); function wpse14370_custom_init() { $args = array( ‘public’ => true, ‘publicly_queryable’ => true, ‘show_ui’ => true, ‘show_in_menu’ => true, ‘query_var’ => true, ‘rewrite’ => true, ‘capability_type’ => ‘post’, ‘has_archive’ => true, ‘hierarchical’ => false, ‘menu_position’ … Read more

Why does WordPress Pagination Remove the Spaces from my GET Variable?

Not sure exactly how you’re adding “find” to the list of query variables, but this is the method you’re supposed to use: function wpa_20565_query_vars( $public_vars ) { $public_vars[] = ‘find’; return $public_vars; } add_filter( ‘query_vars’, ‘wpa_20565_query_vars’ ); I use that to add custom pagination for my custom post types and custom filters for various other … Read more

Can’t add a Page with Name 2011

This has to do with how paging-within-a-page works. See ticket #5305. There’s a plugin that will allow you to have numeric slugs if you’re willing to sacrifice paging: http://wordpress.org/extend/plugins/allow-numeric-stubs/

How to use author id in post permalink

You can do this with a couple of filters: <?php function wpse_112719_pre_post_link( $permalink, $post, $leavename ) { if ( strpos( $permalink, ‘%author%’ ) !== false ) { $authordata = get_userdata( $post->post_author ); $author_id = $authordata->ID; $permalink = str_replace( ‘%author%’, $author_id, $permalink ); } return $permalink; } add_filter( ‘pre_post_link’, ‘wpse_112719_pre_post_link’, 10, 3 ); function wpse_112730_add_rewrite_rules() { … Read more

Remove subfolders from URL

You need to make the WP site url and home url differ in Settings / General. The home url should be example.com, while the site url (where WP lives) should be example.com/wp (or wherever you put it). You can hardcode these in your config file: define(‘WP_HOME’, ‘http://example.com’); define(‘WP_SITEURL’, ‘http://example.com/wp’); WP should know how to take … Read more