Remove Pagination in Appearance -> Menus -> Categories

is there a way to remove the Pagination in the WordPress Menu Editor? I have something like 200 categories in my blog and customising menus seems to be tricky when you have to click through it to find the desired category. I know there’s a plugin that « removes » the pagination for PAGES but I could not find anything to remove the pagination for the CATEGORIES. Source: https://wordpress.stackexchange.com/feeds

How to trace the cause of these PHP notices and warnings for class-wp-query.php?

My WordPress debug.log file is filling up with these PHP notices, alternately with a gap of about 15 minutes and then of several hours… [23-Mar-2018 05:33:00 UTC] PHP Notice: Trying to get property of non-object in /home/mysite/public_html/wp-includes/class-wp-query.php on line 3736 [23-Mar-2018 05:33:00 UTC] PHP Notice: Trying to get property of non-object in /home/mysite/public_html/wp-includes/class-wp-query.php on line 3738 [23-Mar-2018 05:33:00 UTC] PHP Notice: Trying to get property of non-object in /home/mysite/public_html/wp-includes/class-wp-query.php on line 3740 [23-Mar-2018 05:33:00 UTC] PHP Notice: Trying to get property of non-object in /home/mysite/public_html/wp-includes/class-wp-query.php on line 3736 [23-Mar-2018 05:33:00…

Adding a custom taxonomy to "nav_menu_item"

Does anyone know if there is a way to handle a custom taxonomy for the nav_menu_item built’in post type? When I assign my custom taxonomy to this post type, i don’t see any change in the menu editor… It works well with posts, pages and custom post types. Here how I’ve registered my custom taxonomy: add_action( ‘init’, ‘my_region_taxo’, 0 ); function my_region_taxo() { $labels = array( ‘name’ => _x( ‘Regions’, ‘Taxonomy General Name’, ‘my-text-domain’ ), ‘singular_name’ => _x( ‘Region’, ‘Taxonomy Singular Name’, ‘my-text-domain’ ), (…) ); $rewrite = array( ‘slug’…

Exclude custom taxonomy from search results and archive pages

UPDATE: I have the following code working. It excludes the taxonomy from the search results. However, I would like this only to happen if a user is not logged in. The code below is taking effect for logged in and logged out users. How can I check if someone is logged in from the functions.php file? I’ve tried !is_user_logged_in() many times, and I can’t seem to get it to work? Thanks for any help! add_filter( ‘pre_get_posts’, ‘exclude_pages_search_when_logged_out’ ); function exclude_pages_search_when_logged_out($query) { if ( $query->is_search && !is_user_logged_in() ) { $tax_query =…

Web Design Weekly #312

Headlines Interface Lovers If you want to start your day with some inspiration from some of the top designers on the planet, look no further. I can’t believe I just discovered this site. (interfacelovers.com) Developer Survey Results 2018 (stackoverflow.com) Articles The Evolution of Tools Jon Gold shares some wise words about the current tooling landscape and what the near future looks like. He also touches on the newly released Figma API which is super exciting. (airbnb.design) How top tech companies operate their design teams InVision has released a report on…

How to add social locker on custom fields

i want to add social locker on custom fields like demo and download buttons <center><p><a class= »mbutton » target= »_blank » href= »<?php echo get_field(demo_link); ?> »>DEMO</a><p></center> <center><p><a class= »dbutton » target= »_blank » href= »<?php echo get_field(download_link); ?> »>DOWNLOAD</a><p></center> i tried to use <?php echo do_shortcode(« [lockercat] »); ?> added here buttons <?php echo do_shortcode(« [/lockercat] »); ?> ….. with this locker works now but get_field function doesnt work and getting link like this example.com/post-name/php echo get_field(download_link); ?> …. <?php $lockit = ‘[lockercat]’ . ‘<center><p><a class= »mbutton » target= »_blank » href= »<?php echo get_field(demo_link); ?> »>DEMO</a><p></center> <center><p><a class= »dbutton » target= »_blank » href= »<?php echo get_field(download_link); ?> »>DOWNLOAD</a><p></center>’ . ‘[/lockercat]’; echo do_shortcode($lockit); ?> Source:…

WP Query where title begins with a specific letter

I want to search for posts with WP_Query() and select only posts that begin with a specific letter. I found a bunch of old posts with filters that were pre-4.4, but since 4.4 there is a title search added to the WP_Query function. $q = new WP_Query( array(‘post_type’=>’post’,’title’=>’This Song Title’) ); This will return only exact matches of posts with the title « This Song Title ». What I would like to do is return all posts that start with, in this example, the letter ‘T’ I also found this post, which…

Ajax Infinite Scroll In Custom WP_Query Loop Not Working

I have set up a custom WP_Query loop for a page template. I am implementing an infinite scroll method via ajax, and the call is successful, but for some reason I cannot get the query to like the paged arg in the loop. It just won’t pull anything. Here is the code for my ajax action: // AJAX Infinite Scroll function txcap_ajax_scroll() { $args = isset( $_POST[‘query’] ) ? array_map( ‘esc_attr’, $_POST[‘query’] ) : array(); $args[‘post_type’] = isset( $args[‘post_type’] ) ? esc_attr( $args[‘post_type’] ) : ‘post’; $args[‘paged’] = esc_attr( $_POST[‘page’]…