wp

TwitterFacebook
Get flash to fully experience Pearltrees

Disable Admin Bar and Hide Preferences | | Developer's MindDeveloper's Mind

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. 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. http://developersmind.com/2011/02/23/disable-admin-bar-and-hide-preferences/
http://hitchhackerguide.com/2011/02/12/register_post_status/ Register a post type. Do not use before init. A simple function for creating or modifying a post status based on the parameters given. The function will accept an array (second optional parameter), along with a string for the post status name.

register_post_status | A HitchHackers guide through WordPress

Not even permalinks Recently, I had to set up WordPress on an IIS6 machine. 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 www.foo.com/2011/06/my-awesome-post instead of www.foo.com/index.php?p=6 . I used IIRF to get mod_rewrite like functionality, as the supported IIS Rewrite isn’t available until IIS7.

Wordpress Permalinks on IIS6 | ben lowery

http://blowery.org/2011/09/26/wordpress-permalinks-on-iis6/
http://butlerblog.com/2011/07/08/changing-the-wp_mail-from-address-in-wordpress-without-a-plugin/ One of the most common questions regarding the WP-Members™ plugin is, “How do I change the email address from wordpress@mydomain.com?” I suspect that until they use this plugin, most people are unaware that WordPress has its own function for sending email and that it has a default address that it send from. If they are aware, most users opt for changing this with a plugin. If your sole aim is to change this address to something more standard, this is far to simple for using a plugin (unless you have complicated needs).

Changing the wp_mail from address in WordPress without a plugin | ButlerBlog

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. http://digwp.com/2010/04/call-widget-with-shortcode/

Call a Widget with a Shortcode | Digging into WordPress

Let’s start with the very basics. Pete Mall wrote a nice beginner tutorial on the Dashboard Widget API , introduced in WP 2.7, and I’m just going to quickly recap a lot of what he said, and then get into the nitty-gritty. Let’s create a very simple text widget to get us started. http://theme.it/an-in-depth-look-at-the-dashboard-widgets-api/

An In-Depth Look at the Dashboard Widgets API | Theme.it

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. However, there is no way afterwards, to detach and re-attach an image, without altogether deleting that image from the Media gallery and re-uploading it and attaching it to a different post. This is an entirely inefficient process, and while I appreciate all of the hard work that the WordPress team is putting in to making WordPress have media-gallery abilities, I think that a native WordPress option to detach and re-attach images to posts should be inserted into the base code to complete this functionality already half-offered. http://wordpress.org/support/topic/detach-amp-re-attach-media-attachment-images-from-posts

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

Embeds « WordPress Codex

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). WordPress will automatically turn that into a YouTube embed when the post is viewed. (Check the "Auto-embeds" check box in Administration > Settings > Media SubPanel .) You can also opt to wrap the URL in the [embed] shortcode . It will accomplish the same effect, but does not require the URL to be on its own line and the "Auto-embeds" setting to be enabled. http://codex.wordpress.org/Embeds