Compatibility with RTL installations
You can use is_rtl() to check if the user is setup for RTL or not, then you would just need to register and enqueue the RTL styles instead of the LTR styles.
You can use is_rtl() to check if the user is setup for RTL or not, then you would just need to register and enqueue the RTL styles instead of the LTR styles.
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
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
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.
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
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
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
Making it a taxonomy and allowing the client to edit the term title & description would be an option I’d consider. The theme may or may not be using a custom template-file to control the cpt-archive’s front-end. Using a page-template would be ill-advised because by loading the post-type and the page at the same url, … Read more
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.
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