Remove CPT slug from URL

Change permstruct for your CPT. add_action( ‘init’, function() { add_permastruct( ‘tvshow’, ‘/custom_home_page/%tvshow%’); }, 11); However, this is a complex question and can involve different steps to make it work in different ways. P/S/ don’t forget to flush url rules.

Sorting for each custom taxonomy

Is there a way to handle this unique ordering for each term in the taxonomy? You can use custom fields to store the order of the players (e.g.: team_order, league_order, position_order). And dynamically modify the order in your index, archive or taxonomy template file (whatever you use): if( is_tax(array(‘team’,’league’,’position’)) ) { if( is_tax(‘team’) { $wp_query->set(‘meta_key’, … Read more

Retrieving values of custom fields in Quick Edit mode

Ok, I got it, here’s the code: function ilc_quickedit_save($post_id, $post) { if( $post->post_type != ‘evento’ ) return; if (isset($_POST[‘is_quickedit’])) update_post_meta($post_id, ‘eventdate’, $_POST[‘eventdate’]); } function ilc_quickedit_get() { $html=”<script type=”text/javascript”>”; $html .= ‘jQuery(document).ready(function() {‘; $html .= ‘jQuery(“a.editinline”).live(“click”, function() {‘; $html .= ‘var id = inlineEditPost.getId(this);’; $html .= ‘jQuery.post(“‘ . THEME_URI . ‘/library/admin/admin.php”,{ post_id: id, modo: “ajaxget” },’; … Read more

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