Orion42 Blog

~IT made easy~

evidenza

Wordpress

How to have sticky pages on wordpess

You have to change a single line (#137) in  wp-admin/includes/meta-boxes.php from: <?php if ( $post_type == ‘post’ && current_user_can( ‘edit_others_posts’ ) ) : ?> to: <?php if ( in_array( $post_type, (array) apply_filters( ‘sticky_post_types’, array( ‘post’, ‘page’  )  ) ) &&…