Showing Post Counts of One’s (Author) Own in the admin post list
Have a look here for the solution (code needs optimizing, but it works): Help to condense/optimize some working code
Have a look here for the solution (code needs optimizing, but it works): Help to condense/optimize some working code
I’m afraid that there is no easy way to get that done yet because the only hook i found is manage_comments_custom_column and that is an action hook and not a filter hook so you can’t add columns like manage_posts_columns. so as far as i can tell the long way here is the only way. but … Read more
That’s typically the result of users deleting accounts directly in the database. The functions that count users queries to the usermeta table to determine how many users are of a given type, when users do manual deletion they often forget to remove relational data left in the meta table, which in turn throws off the … Read more
I understand the problem you are having, I was thinking of the same thing. It is not really a problem tho, it’s more a matter of good programming design and have a good separation of front-end and back-end. Now the way I have managed to solve this is doing the following: I hope you are … Read more
Using a custom template and wp_update_post you should be able to build your own edit/add post pages in your sites frontend. There are also various plugins available that attempt to do similar things. iFrames can be done, but it will need some checks in functions.php to check for a get variable and add conditional stylesheets … Read more
In your event callback function check to see if the user id the admin then run the function else just reschedule it. So using the example from the codex’s page you linked in the question it would be something like this: function my_activation() { if ( !wp_next_scheduled( ‘my_hourly_event’ ) ) { wp_schedule_event(time(), ‘hourly’, ‘my_hourly_event’); } … Read more
Set custom autosave interval Just define it in your wp-config.php file // Allow revisions define( ‘WP_POST_REVISIONS’, true); // Set number of ms define( ‘AUTOSAVE_INTERVAL’, 300 ); Note that this means that you’ll get a lot of queries and post revisions. Therefore you should also add a max. number of revisions to not fill your posts … Read more
function remove_featured_tax_menu() { remove_submenu_page( ‘edit.php?post_type=movies’, ‘edit-tags.php?taxonomy=featured&post_type=movies’ ); } add_action( ‘admin_menu’, ‘remove_featured_tax_menu’ );
Since buddypress 1.5 you can use: define( ‘BP_USE_WP_ADMIN_BAR’, true ); I use it in bp-custom.php although it can go in wp-config.php
This code will do the job… <?php add_action(‘pre_get_posts’, ‘filter_posts_list’); function filter_posts_list($query) { //$pagenow holds the name of the current page being viewed, we want to run our code only on edit.php (posts list) global $pagenow; //If the ‘Editor’ is logged in, exclude ‘Admin’s posts if(current_user_can(‘editor’) && (‘edit.php’ == $pagenow)) { //global $query’s set() method for … Read more