WordPress – Permettre les sticky posts pour les custom post types – Allow Sticky Posts for CPTs
Août12

WordPress – Permettre les sticky posts pour les custom post types – Allow Sticky Posts for CPTs

Permettre sticky-posts sur des custom post types Enable sticky-posts in wp-admin for Custom Post Types CPT functions.php /** ** ** ** Sticky formations-gratuites ou formations-membres **/ add_action( 'admin_footer-post.php', 'gkp_add_sticky_post_support' ); add_action( 'admin_footer-post-new.php', 'gkp_add_sticky_post_support' ); function gkp_add_sticky_post_support() { global $post, $typenow; ?> <?php if ( $typenow ==...

Read More