Tumblr-like Post Types for WordPress
Alex King made a plugin that creates a different admin UI for each Post Format type. More info here: http://alexking.org/blog/2011/10/25/wordpress-post-formats-admin-ui
Alex King made a plugin that creates a different admin UI for each Post Format type. More info here: http://alexking.org/blog/2011/10/25/wordpress-post-formats-admin-ui
Yes, by adding an action to the before_delete_post, delete_post, or deleted_post actions.
A better approach is to address the main search query. @Dipesh’s answer is technically correct, but I would suggest using the pre_get_posts action instead to affect the intial query, rather than generating a new one. Much less work! add_action( ‘pre_get_posts’, ‘se39294_search_pre_get_posts’ ); function se39294_search_pre_get_posts( $query ) { if ( $query->is_main_query() && is_search() ) { $query->set( … Read more
To manually edit publish date, click the Edit link in the Publish box when editing a post and set the date to whatever you’d like.
You are on the correct path on thinking about post-edit.php. http://core.trac.wordpress.org/browser/tags/3.3.1/wp-admin/post-new.php#L45 See how get_default_post_to_edit is called to return a new post. The second argument tells it to create a post in the database. The function is defined here: http://core.trac.wordpress.org/browser/tags/3.3.1/wp-admin/includes/post.php#L394 Note line 422: $post_id = wp_insert_post( array( ‘post_title’ => __( ‘Auto Draft’ ), ‘post_type’ => $post_type, … Read more
No, all posts, pages and other custom post types exist in the same table (wp_posts) and they all share the same ID column. The ID is unique to each entry regardless of its post type.
one possibility is to run all posts through the loop and only output the month once per new month: <?php $counter = 0; $ref_month=””; $monthly = new WP_Query(array(‘posts_per_page’ => -1)); if( $monthly->have_posts() ) : while( $monthly->have_posts() ) : $monthly->the_post(); if( get_the_date(‘mY’) != $ref_month ) { if( $ref_month ) echo “\n”.'</ul>’; echo “\n”.'<h6>’.get_the_date(‘F’).'</h6>’; echo “\n”.'<ul>’; $ref_month … Read more
From what I understand you want to order posts by their modified date. If so, then this should be a solution: How to order posts by modified date without using ‘query_posts’?
Use get_the_terms() and count the resulting array: print count( get_the_terms( $post->ID, ‘category’ ) ) . ‘ categories’;
When you insert an image to the post you see Add media modal dialog. It has a field named Link URL with three buttons underneath, including None to remove the link. Screenshot: