Admin Ajax is returning 0
A 0 response means either that the action is not set (in the ajax data) or that the action’s callback function cannot be found.
A 0 response means either that the action is not set (in the ajax data) or that the action’s callback function cannot be found.
I coded a plugin just for that and never got around to publish it : Usage: In the dropdown you have a list of all custom fields, so just select the field you want to filter by and click filter. if you want to filter to a specific value of a custom field then select … Read more
You need to use the right hooks (which are not always the same as the URLs/slugs), and it doesn’t hurt to use a hook that runs later (e.g., admin_init): add_action( ‘admin_init’, ‘wpse_136058_remove_menu_pages’ ); function wpse_136058_remove_menu_pages() { remove_menu_page( ‘edit.php?post_type=acf’ ); remove_menu_page( ‘wpcf7’ ); } You can use the following to debug: add_action( ‘admin_init’, ‘wpse_136058_debug_admin_menu’ ); function … Read more
This is what I generally use: <table class=”widefat fixed” cellspacing=”0″> <thead> <tr> <th id=”cb” class=”manage-column column-cb check-column” scope=”col”></th> // this column contains checkboxes <th id=”columnname” class=”manage-column column-columnname” scope=”col”></th> <th id=”columnname” class=”manage-column column-columnname num” scope=”col”></th> // “num” added because the column contains numbers </tr> </thead> <tfoot> <tr> <th class=”manage-column column-cb check-column” scope=”col”></th> <th class=”manage-column column-columnname” scope=”col”></th> … Read more
We’re working on updating http://dotorgstyleguide.wordpress.com/ to have more of this information and reflect the style updates from 3.2. Other than that, I’ve seen a plugin (that I currently cannot locate) that shows a demo page of sorts that displays the various CSS selectors and what they look like, but I believe it was outdated. Other … Read more
Simple to do, first create the dropdown with just the meta values you want and then catch the submit of the filter, just change POST_TYPE to the name of your post type and META_KEY to the name of your meta key: <?php /* Plugin Name: Admin Filter BY Custom Fields Plugin URI: http://en.bainternet.info Description: answer … Read more
If you are getting to the point where the code in your theme’s functions.php is starting to overwhelm you I would definitely say you are ready to consider splitting it up into multiple files. I tend to do that almost by second nature at this point. Use Include Files in your Theme’s functions.php File I … Read more
Enable Hidden Administration Feature displaying All Site Settings Tested on: WordPress 3.1 RC3 This little piece of code does something pretty cool. It will add an additional option to your settings menu with a link to “all settings” which will show you a complete list of all the settings you have within your database related … Read more
Try to add the code in wp-config.php:
Try to add the code in wp-config.php: