Tag Info

Hot answers tagged

7

I'd say the easiest way to do it is use the get_terms_args filter and unset the number limit if the context is right (the AJAX request to get the tag cloud): function wpse_64058_all_tags ( $args ) { if ( defined( 'DOING_AJAX' ) && DOING_AJAX && isset( $_POST['action'] ) && $_POST['action'] === 'get-tagcloud' ) unset( ...


3

Ignore my comment about meta_query. Not only does it not work with $query->set(), you wouldn't be able to control the critical "A OR B" requirement of the query. Instead, I believe what you require is possible via a combination of both the pre_get_posts action hook and posts_where filter hook as follows. add_action('pre_get_posts', ...


2

you sad u have access to phpmyadmin. Go to it, find wp_options table Look for custom_wpadmin_slug in option_name and in option_value column will be your's custom defined wp-admin slug If you'll still wount be able to access then remove next lines in .htaccess: <IfModule mod_rewrite.c> RewriteEngine On RewriteRule ^{your_wp_admin_slug}/?$ ...


2

Rather than blacklist logins, why not whitelist your own IP (example 12.345.67.891 below; or a range) for wp-login.php and in wp-admin for logins and administration? (No plugin needed). A whitelist will block everyone else except you from login. See http://httpd.apache.org/docs/2.4/howto/access.html in the .htaccess in the wp-admin folder: Options All ...


1

If it's native behavior (and not something like third party extensions screwing it up) then update checks should basically fire if there is no data or the time for next check have passed. My educated guess would be it's one of the two: your install not being able to store transients correctly (thus data always empty) your install having time screwed up ...


1

You can actually achieve this using simple CSS. If you look at the HTML you can see that each row has some classes: <tr class="post-1349 type-page status-draft hentry alternate iedit author-self level-0" id="post-1349"> There you can see that there actually is a class that indicates a draft: status-draft So now by simply adding an admin style you ...


1

Milo noted that there is no $wp_query object in wp-admin page, so we can get $paged via: $paged = ( $_GET['paged'] ) ? $_GET['paged'] : 1; Now that we have $paged, we can code our own pagination. I will demonstrate how in its very simplest form. First let's get maximum pagination pages: $max_pages = $the_query->max_num_pages; Then calculate the ...



Only top voted, non community-wiki answers of a minimum length are eligible