Tag Info

New answers tagged

3

These queries are in the wp_enqueue_media() function: $has_audio = $wpdb->get_var( " SELECT ID FROM $wpdb->posts WHERE post_type = 'attachment' AND post_mime_type LIKE 'audio%' LIMIT 1 " ); $has_video = $wpdb->get_var( " SELECT ID FROM $wpdb->posts ...


0

It sounds like you may have a plugin that is overriding the user-edit page, I would setup a dev environment mirroring the site and start disabling plugins until I knew which one was modifying the user-edit page. From there you may find it has a setting that allows you to turn it back on. The Profile section on a default WP install does not have a filter or ...


0

Are you able to see the login screen? When exactly do you get redirected? Try to go to http://yoursite.com/wp-login.php enter your user and password, and see if it works. If it works, the issue could be related to a plug-in.


0

I solved my problem by trying this (and it works!): function get_some_url() { $full_url = add_query_arg( 'action', 'action-name', admin_url( 'users.php' ) ); //$relative_url = str_replace( get_site_url(), '', $full_url ); //return $relative_url; return $full_url; } This was tested in a localhost/subdirectory install and in a live install ...


0

This could be the answer: http://codepen.io/flesler/pen/AEIFc Just adding the following CSS will make it work like a placeholder: [contenteditable=true]:empty:before { content: attr(placeholder); display: block; /* For Firefox */ } We just need to find a way to add a data-attribute to the contenteditable element in the tinyMCE and also add the ...


0

I don't believe you are doing anything wrong, I think it is the way the get_users function works https://codex.wordpress.org/Function_Reference/get_users... search - Use this argument to search users by email address, URL, ID, username or display_name. Perhaps the phrases you are searching with do not match any of the above as it needs to be a full ...


0

Problem solved. I was advised to download a fresh copy of wordpress, delete all wp files/folders on my site EXCEPT wp-config.php file and the /wp-content/ folder, and then replace the deleted folders/files with fresh copies. This worked!


0

Addition to TheDeadMedic's answer, to show ALL tags: if ( defined( 'DOING_AJAX' ) && DOING_AJAX && isset( $_POST['action'] ) && $_POST['action'] === 'get-tagcloud' ) { unset( $args['number'] ); $args['hide_empty'] = 0; } return $args;


0

Please go Dashboard > Settings > Permalink and click Save button.


0

I had the same issue and couldn't find a solution. So through phpmyadmin _option I started deleting rows. The third row I deleted was theme_mods_twentythirteen. Once this was gone I had no trouble again! Fingers crossed...


0

You've got your action/filter names slightly off: // For registering the column add_filter( 'manage_posts_columns', 'custom_posts_table_head' ); // For rendering the column add_action( 'manage_posts_custom_column', 'custom_posts_table_content', 10, 2 );


0

I tested this code and it worked fine. Where are you requireing screen.php? Same way as this? require_once(ABSPATH . 'wp-admin/includes/screen.php'); add_action( 'parse_query', 'filtering_edit_table' ); function filtering_edit_table( $query ) { $screen = get_current_screen(); if( is_admin() && $screen->post_type == 'custom_post_type' ...



Top 50 recent answers are included