enethrie

Web Developer & Designer, Aubrey Portwood

Get All Post ID’s in WordPress, get_all_post_ids()

So, there is a get_all_page_ids() function that returns all the page ID’s, but there isn’t a get_all_post_ids(). So, I built one! *Working in WordPress 3.3.1

function get_all_post_ids(){
	global $wpdb, $post;
	$postids = $wpdb->get_col($wpdb->prepare("
	    SELECT id
	    FROM $wpdb->posts
	    where post_type = 'post'
	    AND post_status = 'publish'
	"));
	return $postids;
}

Use Ubuntu for a Week

Just some things I was able to do in a couple hours (currently installing Adobe Photoshop CS3 in a Virtual XP environment). I was going to work on some website stuff, when I ran across a problem, so I decided to start my Ubuntu week early. If I can successfully work on Ubuntu for a week or so, I may consider switching. As of now, I have to use Photoshop CS3 in a virtual machine (not a good sign so far).

Ubuntu Soon?

I am currently installing Ubuntu 11.10 on a Virtual Machine to check it out. I have been seeing some good things about it, and I have the itch again. The plan: use the virtual environment to do my work next week. Let’s see how many days that lasts.

More Plugins on WordPress.org: .htaccess Redirect, WP Separate CSS

Got the last plugins up! Had to do some magic with sharing a Mercurial repo at Bitbucket.org with a Subversion one on WordPress.org, but all’s well.

.htaccess Redirect is probably the biggest and complex one and have been updating it. I have it up on enethrie.com and using it to do some redirects to help me find issues, etc. Please report bugs @ Bitbucket. WP Separate CSS was also changed a little too, but nothing too major (won’t overwrite your .css files).

Make sure and check out my WordPress.org profile!

 

Help Changing WordPress.org Password / Profile

I had a hard time trying to find the area where I change my password at WordPress.org. As a plugin contributor, I thought I could do it by clicking my username, enethrie, at the top right. But, if you’re not in the right place, you are not going to end up in the right place. The link under the Extend tab will not take you to your public profile.

Try going to http://wordpress.org/support/profile/enethrie/edit (logged in), that’s where I found my real public profile and click Edit.

WP Separate CSS: Create separate CSS code that doesn’t affect theme code

While working on my site, I often need to style certain things and I don’t want to add the CSS to my theme’s CSS (since I open sourced it). So, I created this really small plugin to allow me to do just that. All you have to do is create .css files in the plugin’s directory (wp-separate-css) and they will automatically be linked to in your websites <head>.

Custom CSS plugins weren’t quite what I was looking for, since I wanted to be able to use my favorite editor instead of an in-site editor.

WP Separate CSS @ Bitbucket