Custom Post Type Pagination Problem in Admin Section

It turns out that in my functions.php file, I had the following function: function limit_posts_per_archive_page() { if ( is_tax(‘project_categories’) ) $limit = 9999; else $limit = get_option(‘posts_per_page’); set_query_var(‘posts_per_archive_page’, $limit); } add_filter(‘pre_get_posts’, ‘limit_posts_per_archive_page’); This was an old function modifying the pagination on the front-end, and it turns out that this was causing the error. Removing the … Read more

WordPress Admin panel issue

When you enqueue new libraries to WordPress for the sake of front-end effect only, it is highly recommended to preface the function in the conditional if (!is_admin()); , thus: /** * Load newer jQuery min file. */ if (!is_admin()) add_action(“wp_enqueue_scripts”, “my_jquery_enqueue”, 11); function my_jquery_enqueue() { wp_deregister_script(‘jquery’); wp_register_script(‘jquery’, “http” . ($_SERVER[‘SERVER_PORT’] == 443 ? “s” : … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)