hiding permalink in admin if the user is subscriber

maybe this can do the trick? (untested). Note I used contributor role (Thanks to Brian Fegter for pointing this out) function my_remove_meta_boxes() { if (current_user_can(‘contributor’)) { remove_meta_box(‘slugdiv’, ‘post’, ‘normal’); } } add_action( ‘admin_menu’, ‘my_remove_meta_boxes’ );

wp_query random post

Doing this in PHP is an awful idea: This page is impossible to cache ordering by random is extremely expensive to query, involving creating temporary database tables, and scans, as it has to copy the entire posts table, then randomly re-order the posts, then finally do the actual query on the new table before destroying … Read more

Hooking into the post editing screen for an existing page only

You should really only need to run this on an existing post, since new posts will be created in the manner you specify. add_action( ‘load-post.php’, ‘custom_content_conversion’ ); function custom_content_conversion() { if (! empty($_GET[‘post’]) ) { // Get the post object $post = get_post($_GET[‘post’]); // If the post object has content, store it in the meta … Read more

Increase 10 post limit per page

It seems your theme (or one of your plugins) has reduced the query to 10 posts per page.Otherwise, changing the option in the Settings page has to change the number of posts per page. Check code of your theme and remove posts_per_page parameter of queries (If queries have been modified, and this parameter was set). … Read more