Why can’t I exclude private posts from this query?
I have to wonder if post_status=public would successfully exclude. That way it’s just targeting the public posts.
I have to wonder if post_status=public would successfully exclude. That way it’s just targeting the public posts.
What about Network Publisher? Supports 25 networks, probably all you need. Worth noticing: It uses a third-party service LinksAlpha.
You can also change the menu with the global variables of WordPress for display the menu and submenu. All first items are in the var $menu and all suparts are in $submenu. Also a small example for change the order of the submenu-items with edit.php. Add thius plugin and see the result via debugging. The … Read more
Well, looks like I have found the answer. The action should be changed like so: $action = ‘install-plugin’; $slug = ‘akismet’; wp_nonce_url( add_query_arg( array( ‘action’ => $action, ‘plugin’ => $slug ), admin_url( ‘update.php’ ) ), $action.’_’.$slug ); The answer was found in line 275 in the source code: https://core.trac.wordpress.org/browser/tags/3.9.1/src/wp-admin/includes/plugin-install.php
Ok, I revisited this and revised my answer.. But like I said before: the hook you are (trying) to use won’t/can’t work for the purpose you are aiming for, simply because its only occurrence is in class-wp-posts-list-table.php, which nomen est omen is used to show the post list, the right place should be class-wp-terms-list-table.php. 1. … Read more
The second parameter of selected() has to agree with the value attribute of the current <option>. So assuming you have stuffed $selected with the value given by the relevant get_post_meta(), the following should work for you: <label for=”myplugin_meta_box_select”>Status:</label> <select name=”myplugin_meta_box_select” id=”myplugin_meta_box_select”> <option value=”Approved” <?php selected( $selected, ‘Approved’ ); ?>>Approved</option> <option value=”In Progress” <?php selected( $selected, … Read more
You’re not using nonces right – you need to match the nonce action & name that WordPress checks in core for deleting a user. Taken from the source of WP_Users_List_Table: wp_nonce_url( “users.php?action=delete&user={$post->post_author}”, ‘bulk-users’ )
This might be useful: there is a filter called removable_query_args. You get an array of argument names to which you can append your own argument. Then WP will take care of removing all of the arguments in the list from the URL. function add_removable_arg($args) { array_push($args, ‘my-query-arg’); return $args; } add_filter(‘removable_query_args’, ‘add_removable_arg’); Something like: ‘…post.php?post=1&my-query-arg=10’ … Read more
After debugging this problem, I found this error in the PHP error log located at public_html/mywebsite/wp-admin/error_log: PHP Fatal error: Call to undefined function wp_raise_memory_limit() in /home/example/public_html/mywebsite/wp-admin/admin.php on line 141 This function wp_raise_memory_limit() should be defined in wp-includes/functions.php but it is not defined in my case due to an unsuccessful update by WordPress. So Solution: Do … Read more
Found the problem. There was an unexpected .htaccess file in wp-admin folder with deny from all! not sure how that got there… Thanks everyone for your help.