Bulk post type conversion

You are not really moving anything just changing a simple field named post_type for each post so you don’t have to worry about custom fields or anything else. Simply get the post id’s for the posts you need to change and change them and if you don’t want to create a custom sql query for … Read more

Add custom column at custom posts list

Adding A New Column To The books Post Table Here we can use the filters manage_{$post->post_type}_posts_custom_column manage_{$post->post_type}_posts_columns or for the books post type: manage_books_posts_custom_column manage_books_posts_columns Here’s an example how we could display a button, for each row in the send_email column: /** * Books Post Table: Display a utton in each row in the ‘send_email’ … Read more

Taxonomy archives based on Custom Post Type

Here is a complete example made possible using add_rewrite_rule(). The basic setup for this example is documented first, then we’ll get to the real part of the solution using add_rewrite_rule(). Taxonomy and Post Type registration Register the genre taxonomy and the book, movie, and game post types (note that the singular version of each of … Read more

custom post type edit / publish hook

Unless I misunderstand your question, you want {$new_status}_{my-custom-post-type} Take a look at the hook registration. This page (from Pippin’s Posts)* does a better job than I could at explaining it, but from your example, you would want add_action(‘publish_episode-gallery’, ‘update_custom_ngg_table’); According to the source, the following status are available: publish, future, draft, pending, private, trash, auto-draft … Read more