background preloader


Facebook Twitter

Disable Admin Bar and Hide Preferences. Before you consider removing the admin bar, you should read this. WordPress 3.1 was released earlier today and one of the key features is the admin bar, which allows you to get to your most-used dashboard pages with a single click. However, the admin bar is not for everyone and you can easily hide it by visiting your profile page. You can also disable the admin bar for all users on your site by adding the following code to a plugin or the functions file of your theme: This will disable the admin bar for all users on your site but they will still see the admin bar preferences in their profile.

You can hide the admin bar preferences using: Note: If you are using this code to only hide the preferences without disabling the admin bar, your users can still change the values by manually editing the hidden variables before the page is submitted. Experiments: Admin Tour with WordPress Pointers [Video] We wrote about feature pointers in WordPress earlier this week and one of the usage scenarios that came into my mind (except introducing new core features after WordPress upgrades) is tours, which is why we created this yet another experiment.

Experiments: Admin Tour with WordPress Pointers [Video]

First we thought of theme options panel tours (for those complex premium themes), then we thought of plugin tours upon plugin activation and finally we thought of a more general WordPress tour. WordPress has evolved a lot throughout the years and saying that WordPress is incredibly easy to use is not fair. Things like custom post types, custom taxonomies, permalinks structures, child themes, shortcodes, page templates, custom fields and other things could be quite confusing, especially to newcomers. We thought it would be nice to create an admin tour, so we did! We created a simple plugin that uses the new Admin Pointers feature, currently in the roadmap for WordPress 3.3. @kovshenin that looks unreal, wow! A HitchHackers guide through WordPress. Wordpress Permalinks on IIS6. Not even permalinks Recently, I had to set up WordPress on an IIS6 machine.

Wordpress Permalinks on IIS6

Yes, WordPress does work on IIS6, believe it not. The only really tricky bit is getting fancy permalinks to work, so that urls looks like instead of P=6. I used IIRF to get mod_rewrite like functionality, as the supported IIS Rewrite isn’t available until IIS7. RewriteEngine On RewriteBase / #whatever your virtual root is RewriteCond %{REQUEST_FILENAME} ! (image found on Changing the wp_mail from address in WordPress without a plugin. One common question I often hear regarding WordPress email configuration is, “How do I change the email address from”

Changing the wp_mail from address in WordPress without a plugin

I suspect that most people are unaware that WordPress has its own function for sending email and that it has a default address that it sends from. If they are aware, most users opt for changing this with a plugin. Learn Call a Widget with a Shortcode. We covered how to run a shortcode in a widget .

But what about inserting a widget with a shortcode? I recently had this situation come up. I had a single page where I just wanted to be able to chuck in a widget without the whole rigmarole of creating a special widgetized area and probably a custom page template for that widgetized area and such. I wanted to just put [widget widget_name="my_widget"] in the pages content and have that widget pop in. Turns out it wasn’t as easy I wanted it to be, but it’s not that bad… The answer was creating a custom function for the functions.php file which would output any widget by name. The logic Test if widget exists If it does… Start capturing output Output widget End capturing output Return captured output If it doesn’t exist… Output fail message The code for functions.php Usage.

Support » Detach & Re-Attach Media Attachment Images from Posts. Is there a way to 1. detach and 2. reattach attachment-images from one post to another post?

Support » Detach & Re-Attach Media Attachment Images from Posts

There are two very common ways of uploading an image to WordPress to place it into the Media Gallery. Via "add New" under the Media Tab in the admin.Inserting an image when writing a post and uploading the image from the overlay Media window/layer. On upload alone, the first method does NOT attach the uploaded image to any particular post, but one manually attaches it later. The second method attaches the uploaded image to the post it was uploaded through. When I use the first method, there is a way to sort the listing for "unattached images" which you can select and then attach to a particular post. In the meantime, does anyone know of a plugin, php script or coding approach to attach, detach and reattach/re-assign images within the Media gallery that WordPress already has built into it? Embeds. Embeds Languages: English • Hrvatski • Italiano • 日本語 • Nederlands • Português do Brasil • Русский • 中文(简体) • (Add your language) It's super easy to embed videos, images, tweets, audio, and other content into your WordPress site.


In A Nutshell All you need to do to embed something into a post or page is to post the URL to it into your content area. Make sure that the URL is on its own line and not hyperlinked (clickable when viewing the post). For example: Check out this cool video: That was a cool video. WordPress will automatically turn that into a YouTube embed when the post is viewed. You can also optionally wrap the URL in the [embed] shortcode.