Order columns for custom post types in WordPress

Oct.01.2014 | 12:49 pm

I have been working with custom post types in WordPress for several years now, but never really found a suitable solution for ordering any of the default or custom columns properly. By default WP will order all custom post types by date, which sucks if you want them to sort by menu order, their title, or some other custom column you've created.

Every tutorial I came across (not to say every single one out there is wrong) either didn't work for me, was outdated, etc. So, here's how I just started doing it.

...

Full post »

Woocommerce notices css classes

Sep.10.2014 | 05:26 pm

These weren't TOO hard to find, however, they weren't as easy as a Google search.

  • woocommerce-error
  • woocommerce-info
  • woocommerce-message

I had two clients this week that wanted me to change the colors for info and message, so I had to make sure I got all of the existing ones. The output actually comes from the three files in woocommerce/templates/notices if you're wanting to modify the output, as well.

...

Full post »

Test for wp, again

Aug.05.2014 | 07:22 pm

This helped with fixing the first two errors received when posting:

http://wordpress.org/support/topic/error-can-only-modify-connections-owned-by-this-application

First error:

Failed posting to your Facebook Timeline. Error: {"message":"(#100) You haven't enabled Explicitly Shared for this action type (331247406956072) yet. Please update your Open Graph settings in the App Dashboard","type":"OAuthException"}

Second error: ...

Full post »

VMware Fusion locked aspect ratio

May.06.2014 | 08:43 am

So, I had this problem with a new virtual machine I installed in VMware Fusion where the aspect ratio was locked to 4:3 no matter how much I tried to resize the window. I didn't understand what was going on since this was the third or fourth VM I had installed. There were a couple other things I had noticed, as well, like I wasn't able to copy and paste to and from the VM.

I tried Googling and got nothing that helped me at all. I gave up. Yesterday, I was trying share between the VM and my MacBook and it told me that it couldn't do it because the setup was still running...on a VM that was a few months old. I Googled that error and got an answer right away, had to unmount the floppy and cd...

Full post »

Making an iframe responsive

Feb.19.2014 | 02:04 pm

I wish I could say I figured it out myself, however, I didn't. I needed a solution that allowed me to take an iframe posted in a page (to load external content) and make it responsive, keeping with the mobile-first mindset.

Initially, I started with multiple breakpoints, however, due to the external content is video, there were always black bars either at the top and bottom or sides of the video. Not really the best solution, I wasn't happy with it, and Google search turned up Chris Coyier's post on css-tricks. He runs through a bunch of ways to make several d...

Full post »