Admin is showing all posts on page 1
so it was $wp_query->set(‘nopaging’, true); Which was set in a pre_get_posts function. I never thought of searching for this. I’ve added if(!is_admin()){ // code } So it doesn’t run in the admin.
so it was $wp_query->set(‘nopaging’, true); Which was set in a pre_get_posts function. I never thought of searching for this. I’ve added if(!is_admin()){ // code } So it doesn’t run in the admin.
You can enqueue javascript files and css files like this for wp admin:- function load_custom_wp_admin_style() { wp_enqueue_script( ‘script-name’,’js/scripts.js’, array(‘jquery’), ‘3.3.5’, true ); } add_action( ‘admin_enqueue_scripts’, ‘load_custom_wp_admin_style’ ); First you need to enqueue admin scripts like below:- function my_admin_scripts() { wp_enqueue_script(‘media-upload’); wp_enqueue_script(‘thickbox’); } function my_admin_styles() { wp_enqueue_style(‘thickbox’); } for uploading attachment:- $(‘.upload_image_button’).live(‘click’,function() { formfield = $(‘#upload_image’).attr(‘name’); … Read more
I solved this issue by doing as shown below. I used Woo commerce Gift registry plugin replace the code with the below code in magenest-giftregistry-admin.php <?php if ( ! defined( ‘ABSPATH’ ) ) exit; // Exit if accessed directly if (! defined ( ‘ABSPATH’ )) exit (); // Exit if accessed directly class Magenest_Giftregistry_Admin { … Read more
you can remove this functionality by adding this code in a plugin or theme remove_action( ‘template_redirect’, ‘wp_redirect_admin_locations’, 1000 ); This will remove all of dashboar, login, admin so if you will want some of them to still be there you will have to write your own replacement function to wp_redirect_admin_locations and hook it after you … Read more
@BrettGoodrich I wish I had better advice for you based on the information you provided but it sounds like you might still be dealing with some underlying server configuration issues, perhaps something that you don’t even have control over since it’s shared hosting. When I encounter problems like this I like to try a fresh … Read more
To get your site back Open wp-config.php – ( add these lines ) define(‘WP_HOME’,’www.therealdeal.org.uk/newsite’); define(‘WP_SITEURL’,’www.therealdeal.org.uk/newsite’); or to have it autmatically map to the right places define( ‘WP_SITEURL’, ‘http://’ . $_SERVER[‘SERVER_NAME’] ); define( ‘WP_HOME’, ‘http://’ . $_SERVER[‘HTTP_HOST’] ); Load the admin or login pages a few times
Finally I used the wp_set_password(); function as the emergency reset script documentation of WordPress explains, which helped me to set a new password for my admin account.
Get URL of current featured image with JS in edit post view
SSL doesn’t deliver parts of WordPress Administration Module
Plugin dev: How to multiply instances of a plugin in the same metabox?