comment_form() not showing on custom post type
comment_form() not showing on custom post type
comment_form() not showing on custom post type
I used your code and tested the CPT with an author account.The option to add a featured image showing up just fine. So just a heads up that the issue is not related to that specific CPT snippet, you should look elsewhere. Maybe a functions.php cleanup, disable plugins and/or try another theme using the snippet … Read more
you will probably want to use term_exists http://codex.wordpress.org/Function_Reference/term_exists to check if the term is “valid”. Probably worth checking how good is that API with mismatched cases. Another option is to use AJAX to populated your input control base on the user input. I am almost sure there is some jquery plugin for that, and then … Read more
How to Add multiple instance of meta box to custom post type
I had this same problem when I cloned my site to set up a development server – for me, it working by setting permalinks to ugly, saving, then setting them to pretty again, which rebuilt whatever had gone wrong in htaccess.
A custom taxonomy makes perfect sense – here’s hoping I haven’t missed something: $songs = get_posts( array( ‘post_type’ => ‘song’, ) ); $index = array(); // Build an album_id => songs index foreach ( $songs as $song ) { if ( $albums = get_the_terms( $song->ID, ‘album’ ) ) $index[ $albums[0]->term_id ][] = $song; else $index[ … Read more
Your second function is wrong. get_post_type($post) excepts the current post object or post ID or any post object or ID given to it. You are using the arguments for get_post_types( $args, $output, $operator ) for get_post_type, which fails the function which in turn gives you the error in your foreach loop. To rectify your function, use something like this: … Read more
How to import files to individual posts of a custom type
How to run filter only on custom post type edit screen
I’ve encountered exact same problem. Bad news it is not well supported by WPML… To be more specific it is supported in a very strange way: syncing values for selected custom metaboxes is supported but only “one way” (from original to translated contents but not the other way round). So in your city example you … Read more