Custom post types problem
I’d recommend pTypeConverter instead of Post Type Switcher. I’ve run into a couple of odd issues when using it. http://wordpress.org/extend/plugins/ptypeconverter/
I’d recommend pTypeConverter instead of Post Type Switcher. I’ve run into a couple of odd issues when using it. http://wordpress.org/extend/plugins/ptypeconverter/
The information about post type is stored in wp_posts table in DB in column post_type – either post, page, attachement and other post types you’ve defined. So i quess you can use some SQL query in your case. Or you can write some script using WP_Query for fetching posts from cerain category (for example), and … Read more
Your recipe archive itself doesn’t have a post or page to attach meta such as featured images to. Since you posted no code and my psychic powers are not working today, I’m going to assume that one of these is your situation: Top recipes and the recipes archive are identical with no difference Top recipes … Read more
I’m not sure how you define “first child” – alphabetically, by highest or lowest ID, etc., but if you can query for the child you want via WP_Query, then you can filter single_template to do the redirection based on whether the requested post has a parent or not: function wpa87313_redirect_post_type( $template ){ // if this … Read more
If you save the contents of the two input fields into one post_meta value you are able to call them at once. In the save_post action $text = esc_attr( $_POST[‘text’] ); $select = esc_attr( $_POST[‘select’] ); // saves the value as “text select” $combined = trim( sprintf( ‘%1$s %2$s’, $text, $select ) ); update_post_meta( $post_id, … Read more
I would try using the post ID that’s automatically passed to save_events, rather than the $post global. So: function save_events( $post_id ){ if ( !wp_verify_nonce( $_POST[‘events-nonce’], ‘events-nonce’ )) { return $post_id; } if ( !current_user_can( ‘edit_post’, $post_id )) return $post_id; update_post_meta($post_id, “events_price”, $POST[‘events_price’] ); update_post_meta($post_id, “events_location”, $POST[‘events_location’] ); } I’m not sure the global $post … Read more
Not sure what $gogo_blog_text_no_posts is but you should be able to change this: $wp_query->query(‘posts_per_page=”.$gogo_blog_text_no_posts.”&paged=’.$paged); to $wp_query->query(‘posts_per_page=”.$gogo_blog_text_no_posts.”&paged=’.$paged.’&cat=1′); See WP_Query Codex
Have you tried using include/exclude? $taxonomy = ‘game-type’;… $include=”ANDROID ID IE: 1″ $args = array(… include => $include ); EDIT: vancoder is right: it should be… $taxonomy = ‘game-type’;… $child_of=”ANDROID ID IE: 1″ $args = array(… child_of => $child_of ); Where $child_of is the ID of your subcategory.
You need to reset your permalinks… “powercycle them” 🙂 click “Numeric” -> Save then back to “Post Name” and save (or vice versa)
Sadly you can’t. You can’t query based on serialized data and since you store the data in an array it is saved as serialized. you should use a separate row for each field you want to query / sort based on. I asked this same question about two years ago.