sort tags by tag ID in admin panel

Use orderby=id You can simply sort the tags by term_id with the following GET request: /wp-admin/edit-tags.php?taxonomy=post_tag&orderby=id&order=desc and similar for other taxonomies. Why does this work? The orderby parameter is read through: if ( !empty( $_REQUEST[‘orderby’] ) ) $args[‘orderby’] = trim( wp_unslash( $_REQUEST[‘orderby’] ) ); in the WP_Terms_List_Table class and used as input argument in: get_terms( … Read more

How do I host WordPress on a hidden domain through a reverse proxy?

To ensure your content isn’t crawled from the hidden admin DOMAIN you could include something like this in your .htaccess file. RewriteEngine On #Force traffic to production URL RewriteCond %{HTTP_HOST} !xxxx.com$ [NC] RewriteRule (.*) http://www.xxxx.com/guides/%{REQEUST_URI} [R=301,L] There is more than one way to handle this first redirect so your code may work too (didn’t test … Read more

WordPress Ajax Not Working ( Custom Admin page)

Uncaught TypeError: Cannot read property ‘ajax’ of undefined @Sasa1234, it happen cause your jQuery is undefined. Please take a look @EAMann answer. So, your JS code should like this: function myajaxfunction() { if ( undefined !== window.jQuery ) { jQuery.ajax({ //ajax request url: ajaxurl, data: { ‘action’:’rs_like_request’, ‘post_type’ : jQuery(‘#post_type’).val() // value of text box … Read more

/wp-admin/ 500 error

I never figured out why my /wp-admin/ was giving me a 500 on my web server but not my local WAMP server. After several hours of going over logs and trying nearly every piece of advice I could find relating to my issue, I opted to export all the posts, pages, menus, etc. from my … Read more