wp-login behind nginx reverse-proxy inaccessible — bad redirect?
wp-login behind nginx reverse-proxy inaccessible — bad redirect?
wp-login behind nginx reverse-proxy inaccessible — bad redirect?
Admin access for custom user capabilities
Also an tutorial with an solution for page and post to add thumbnail in a column: http://wpengineer.com/1960/display-post-thumbnail-post-page-overview/ Change the content from thumbnail to your content and remove the hooks for post: // for posts // add_filter( ‘manage_posts_columns’, ‘fb_AddThumbColumn’ ); // add_action( ‘manage_posts_custom_column’, ‘fb_AddThumbValue’, 10, 2 ); // for pages add_filter( ‘manage_pages_columns’, ‘fb_AddThumbColumn’ ); add_action( ‘manage_pages_custom_column’, … Read more
Settings API not saving values to database
Here is what I think you need to do Create a NEW multi site blog on the new “master” domain with WP 3.0 Create a new empty blog the the url h..p://www.mysite.com/oldblogname Export you old site and input inport into the new blog You need to check that all the images get copied to the … Read more
You can hook into in_plugin_update_message-{$file}. For the above plugin, the according code looks as follows: add_action(‘admin_menu’, array($this,’admin_menu’), 11); function admin_menu() { global $pagenow; if( $pagenow == ‘plugins.php’ ) { $hook = apply_filters(‘acf/get_info’, ‘hook’); add_action( ‘in_plugin_update_message-‘ . $hook, array($this, ‘in_plugin_update_message’), 10, 2 ); } } function in_plugin_update_message( $plugin_data, $r ) { $version = apply_filters(‘acf/get_info’, ‘version’); $readme … Read more
I don’t know the name of a function that would do just that – but i can give you what i think is a good algorithm to do so However, I suggest you do the following trick : Once the user publishes new content – let it have a category called “user submission” for example … Read more
Hook onto the edit-tags page and insert some additional styling to adjust the textarea, the ID remains the same for post tags, categories and i think other taxonomies to.. Adjust CSS for taxonomy management page Example only, tailor to suit you needs. add_action( ‘admin_print_styles-edit-tags.php’, ‘resize_description_field’ ); function resize_description_field() { ?> <style type=”text/css”> textarea#tag-description { height:300px!important; … Read more
For your my_ajax_admin_add_track() function, grab the form field data from the $_POST array, populate the required data in an array to call wp_insert_post(), then call wp_insert_post() passing it the post data. It should return the new post ID number if successful.
Removing the null paramaters fixed the problem: $attachments = get_children(array( ‘post_type’ => ‘attachment’, ‘post_mime_type’ => ‘image’, ));