Andy Potanin
Forum Replies Created
-
Version 0.60 fixes the back-end, we rewrote some core functions, a lot of data was being loaded redundantly.
The new version 0.60, has a UI for doing most of the things that you can with with the filters. Check it out.
The plugin settings are on the bottom of the General Settings page in the WP-MUI Settings section.
Can you give me more detail –
Does that validation occur? (Do fields get highlighted in red)
Are there any JavaScript errors?
You are operating in MultiSite mode, correct?Zip code and phone number masks can now be edited on the Settings page.
Any problems with total calculations is caused by javascript errors, which are usually caused by other plugins using a different version of jQuery, or causing some sort of JS conflict.
Forum: Fixing WordPress
In reply to: Custom Post Type Rewrite Permalink and Exclude baseDid you ever figure this out? I just wrote a rather complex plugin that uses a lot of custom post types, and ended up having the plugin create all of its custom rewrite rules, I can send you some information if you’d like. Shoot me a message though twincitiestech.com
Forum: Fixing WordPress
In reply to: Including jQuery breaks dashboard JavaScriptIn fact that’s what I have to do all the time with a lot of jQuery scripts to keep WP from breaking, just downgrade the version, and it’ll work.
Forum: Fixing WordPress
In reply to: Including jQuery breaks dashboard JavaScriptGo to https://jqueryui.com/download and download the 1.7.3 version of the datepicker, and use the built-in WP ui library.
Forum: Plugins
In reply to: Detach & Re-Attach Media Attachment Images from PostsLet me know if there are any problems with that code, I wrote it just now, didn’t fully test it. Good luck!
Forum: Plugins
In reply to: Detach & Re-Attach Media Attachment Images from PostsPost this into your functions.php file, or a plugin file, and a new column will be created on the media page that will allow you to “re-attach”.
add_filter("manage_upload_columns", 'upload_columns'); add_action("manage_media_custom_column", 'media_custom_columns', 0, 2); function upload_columns($columns) { unset($columns['parent']); $columns['better_parent'] = "Parent"; return $columns; } function media_custom_columns($column_name, $id) { $post = get_post($id); if($column_name != 'better_parent') return; if ( $post->post_parent > 0 ) { if ( get_post($post->post_parent) ) { $title =_draft_or_post_title($post->post_parent); } ?> <strong><a href="<?php echo get_edit_post_link( $post->post_parent ); ?>"><?php echo $title ?></a></strong>, <?php echo get_the_time(__('Y/m/d')); ?> <br /> <a class="hide-if-no-js" onclick="findPosts.open('media[]','<?php echo $post->ID ?>');return false;" href="#the-list"><?php _e('Re-Attach'); ?></a></td> <?php } else { ?> <?php _e('(Unattached)'); ?><br /> <a class="hide-if-no-js" onclick="findPosts.open('media[]','<?php echo $post->ID ?>');return false;" href="#the-list"><?php _e('Attach'); ?></a> <?php } }
Forum: Fixing WordPress
In reply to: Including jQuery breaks dashboard JavaScriptUI Widget causes that error. In case your particular plugins/theme does not need the UI Widget file, download the UI files separately, and only use the ones you need.
Forum: Fixing WordPress
In reply to: Custom Post Type Rewrite Permalink and Exclude baseIs ‘California’ a post type or a taxonomy term?
Forum: Fixing WordPress
In reply to: Custom Post Type Rewrite Permalink and Exclude baseNote the ‘rewrite’ => array(‘slug’=>”) in code below.
register_post_type('listing', array( 'labels' => $labels, 'singular_label' => __('Listing'), 'public' => true, 'show_ui' => true, '_builtin' => false, '_edit_link' => 'post.php?post=%d', 'capability_type' => 'post', 'hierarchical' => true, 'rewrite' => array('slug'=>''), 'query_var' => $base_slug, 'taxonomies' => array('skill','industry'), 'supports' => array('title','editor', 'thumbnail') ));
Forum: Plugins
In reply to: Change LogIn PictureYou can also customize the URL of the image by adding something like this to your functions.php file:
add_filter('login_headertitle', create_function(false,"return 'https://twincitiestech.com';"));
Where “https://twincitiestech.com” would obviously be the URL you want to link to.
Forum: Plugins
In reply to: Change LogIn PictureHere’s how I do it for my clients.
It’s a two step process.Step 1:
Upload the logo you want into the “images” folder within the theme folder, example:
wp-content/themes/default/images/logo-login.gifStep 2:
Add the following code to your functions.php file (the one in your theme):
add_action("login_head", "my_login_head"); function my_login_head() { echo " <style> body.login #login h1 a { background: url('".get_bloginfo('template_url')."/images/logo-login.gif') no-repeat scroll center top transparent; height: 90px; width: 400px; } </style> "; }
You may have to adjust the width and height to fit your logo.
If you are not familiar with WordPress actions, I suggest you read up on them. What happens here is add_action tells WordPress to call your special function called my_login_head, which then inserts code into the login page. The code we are inserting is telling WP to use different CSS for the login page. Our CSS tells the element to use a background image from our template folder.