Tag Info

New answers tagged

1

Just an addiction to @KrzysiekDróżdż answer. When viewing a specific post status the url query string variable 'post_status', is set to the name of the status, so you can use $_GET['post_status'] to narrow the effect of @KrzysiekDróżdż code only for pending posts: function my_edit_per_page( $result, $option, $user ) { $status = filter_input( INPUT_GET, ...


3

It won't be very hard to do. Just add this to your functions.php or into your plugin: function my_edit_per_page( $result, $option, $user ) { if ( (int)$result < 1 ) return 20; // or whatever you want } add_filter( 'get_user_option_edit_page_per_page', 'my_edit_per_page', 10, 3 ); // for pages add_filter( 'get_user_option_edit_post_per_page', ...


0

You can capture the list in a variable, rather than echo it: $list = '<ul class="strong"> <li>' . get_field( 'highlights_list_item#1' ) . '</li> <li>' . get_field( 'highlights_list_item#2' ) . '</li> </ul>'; echo do_shortcode( '[one_half]' . $list . '[/one_half]' ); Note the use of get_field() ...



Top 50 recent answers are included