Database problem

Your database is not cached but the HTML files are cached by w3 total cache and cloud flare. If have not backed up you database there is not much you can do to easily restore your site. They only thing you can do at this stage is grab a copy of your site from cached … Read more

How to override post-new.php with custom template

This does sound very challenging. post-new.php isn’t template really. It’s a full–featured endpoint, that is PHP script directly requested by browser and processed by PHP engine as entry point. There is no good point to intervene this early in the process. The bulk of output is handled by wp-admin/edit-form-advanced.php which is hardcoded in it as … Read more

defined (‘ABSPATH’) false after AJAX post to other PHP-file

Follow these steps and you should be good to go:- Localize your script where you are implementing ajax(https://codex.wordpress.org/Function_Reference/wp_localize_script) Then make use of wp_ajax_{myfunction} (admin) and wp_ajax_nopriv_{myfunction} And lastly implement your code inside that function myfunction(){ /****Your code goes here*****/ } Eg. https://stackoverflow.com/questions/17855846/using-ajax-in-a-wordpress-plugin

Show only childs and grandchilds of certain post in admin

Without seeing your code and arguments you are using in parse_query filter, I can be certain, but if think the post_parent__not_in query argument achieves what you want. function wpse_282340_exclude_posts_from_admin($query) { // bail early if we are not in the admin side if (!is_admin()) { return $query; } global $pagenow, $post_type; // check if we are … Read more

Disable flyout (popup) menus in backend

Actually I have found the solution in modern version of wordpress, to disable flyouts a custom CSS of #adminmenuwrap { overflow: hidden; } should be added. I’ve answered in the old theme as well, so if moderators will not delete my answer there again, this topic is redundant

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