Video tutorials in Dashboard

I do exactly that with my clients! PDF’s are much harder to assemble & nobody Reads The F Manual, anyway 🙂 And, if you allow me a little digression, I’d recommend this talk about e-learning and video tutorials: Salman Khan: Let’s use video to reinvent education. Dealing with Privacy YouTube offers two possibilities. Private videos … Read more

display URL or permalink instead of page title in dashboard

Filter ‘the_title’ on the screen with the list table of your post type. The pattern for the initial hook is: manage_edit-post_type_name_columns. Sample code: // replace ‘post’ with the post type name you want to catch. add_filter( ‘manage_edit-post_columns’, ‘wpse_67171_title_to_url’ ); /** * Replace the default title with its permalink. * * @param string $title * @param … Read more

wp-admin does not redirect to dashboard

The problem was in .htaccess. There was an old global .htaccess file (from the old website) besides the wordpress one which was hidden on the sever (by admins of the hosting company) which rewrite rules harmed the ones in wordpress. I actually had to contact the admins and ask them to remove those rewrite rules.

Dashboard Disappears after Upgrade

That is a seriously wonky plugin, my friend. Prologue Before we actually start, trash this conditional – it does absolutely nothing: if($_REQUEST[‘s’] != ”) { } But really, more than likely, the original plugin developer had intended this conditional to actually do something by bailing out of the function if $_REQUEST[‘s’] is not set (seeings … Read more

Set default page for user account in admin

You set a custom url after rewrite from a login. A small example, usable in a template of the theme to login. <?php $redirect = esc_url( ‘your-url’ ); if ( ! is_user_logged_in() ) { $link = ‘<a href=”‘ . get_option( ‘siteurl’ ) . ‘/wp-login.php?redirect_to=’ . home_url( “https://wordpress.stackexchange.com/” ) . ‘”>’ . esc_attr__( ‘Login’, ‘documentation’ ) … Read more

Move “Menus” link from Appearance > Menus to its own tab on left column Dashboard

Here code how to add new menu and remove old add_action(‘admin_menu’, ‘change_menus_position’); function change_menus_position() { // Remove old menu remove_submenu_page( ‘themes.php’, ‘nav-menus.php’ ); //Add new menu page add_menu_page( ‘Menus’, ‘Menus’, ‘edit_theme_options’, ‘nav-menus.php’, ”, ‘dashicons-list-view’, 68 ); } after this can be some bug with opened “Appearance” but you can fix it with css you can … Read more

What happened to the WordPress dashboard?

Navigate to http://yoursite.dev/wp-admin If you are still getting redirected to the main site check your database, MAMP I beleive comes with PHPmyAdmin, login to that and check your SITE_URL in the WP_OPTIONS table and then check the WP_USERS table to see if your user account is still registered as an admin.

How can I show some description in the “All Posts” view of a custom post type in Dashboard?

The filter views_{$this->screen->id} is fired just after the title of post edit screen has been print to screen, so it’s a safe place to just echo what you want. So you can simply check here: function post_type_desc( $views ){ printf(‘<h4>%s</h4>’, __(‘Your description here.’) ); // echo return $views; // return original input unchanged } add_filter(“views_edit-POST_TYPE_HERE”, … Read more

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