Best way to manage a lot of pages in Wp Admin [closed]

This has been a reoccurring issue in WordPress. See these old trac links that are 9, 7 and 6 years-old respectively: https://core.trac.wordpress.org/ticket/3614, https://core.trac.wordpress.org/ticket/5303, https://core.trac.wordpress.org/ticket/14579 The challenge is that WordPress was built primarily for chronological posts since it began as a blogging tool. Page management was always secondary. WordPress still lacks an elegant solution for large-scale … Read more

Core framework/helpers for logging stuff?

WordPress makes use of the reliable PHP error logging. It provides an API of it’s own and it’s fully documented here: Error Handling and Logging and often it’s already well integrated into server configurations. For optional logging you can just use trigger_error() with it’s default error-type notice (E_USER_NOTICE). Doing so will ensure you’re streamlined with … Read more

Disable qTranslate by post type in admin + disable per page / post ID on front-end [closed]

Following snippet will disable it for post_type post (modify array below to affect other post_types): function qtrans_disable() { global $typenow, $pagenow; if (in_array($typenow, array(‘post’)) && // post_types where qTranslate should be disabled in_array($pagenow, array(‘post-new.php’, ‘post.php’))) { remove_action(‘admin_head’, ‘qtrans_adminHeader’); remove_filter(‘admin_footer’, ‘qtrans_modifyExcerpt’); remove_filter(‘the_editor’, ‘qtrans_modifyRichEditor’); } } add_action(‘current_screen’, ‘qtrans_disable’); Similarly you can disable it for specific post IDs. … Read more

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