group posts by month/date ignore years

You can use the month parameter of WP_Query to get posts by month. For example, to get all posts published on March, ignoring year: <?php $the_query = new WP_Query( ‘monthnum=3’ ); echo ‘<ul>’; while ( $the_query->have_posts() ) { $the_query->the_post(); echo ‘<li>’ . get_the_title() . ‘</li>’; } echo ‘</ul>’; wp_reset_postdata(); ?>

Customising the admin columns for a custom post type, but now most of the built in categories don’t display?

It turns out we had inadvertently created a single conventional category together with our dozen or so custom categories (this probably happened using the WP Ultimate CSV Importer which, for some of our imports, I think we’d filled in the category field hoping it would map to our custom category; it didn’t and we forgot … Read more

Changing custom post_type when publishing

It give a hook to init your function for the requirements. The hook {status}_{post_type} is your right hook. If this hook was fired, you can start your custom function to change the post type. For your custom post type “prototyp” use publish_prototyp. See also the codex about the hook, also the hook from old status … Read more