Home
> Computer e tecnologia > How to have sticky pages on wordpess
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#
Categorie:Computer e tecnologia
evidenza, post, sticky, sticky page, sticky post, wordpress
Commenti (0)
Trackbacks (0)
Lascia un commento
Trackback
Commenti recenti