Orion42 Blog

~IT made easy~

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’  )  ) ) && current_user_can( ‘edit_others_posts’ ) ) : ?>

There is an open thread on the Core Trac WordPress website, with also my contribute:
http://core.trac.wordpress.org/ticket/12702#

Leave a Reply