Needed a way to display meta field info in a post as part of a site rebuild I’m working on.
The meta shortcode plugin adds a short code to WordPress that will display the contents of a meta field if it exists, and optionally something else if it doesn’t.
You can get the plugin from the WordPress plugin library.
Use the [ metafield ] shortcode, without the spaces, where you want the info to appear.
The following attributes are available.
- field – The name of the field to use. This is the only required attribute.
- before – Text or HTML to display before the meta field. Defaults to nothing for single meta values or <ul> for cases where there are multiple values for a meta field.
- after – Text or HTML to display after the meta field. Same defaults as before except it closes the list.
- sorted – If there are multiple values for a meta key, setting this to true will sort them alphabetically. Setting to false or leaving blank will output in the order entered in WordPress. This attribute has no effect if the meta key only has a single value.
- empty – Displayed when the meta key is empty or not found. Defaults to empty which means nothing will be displayed if the key isn’t found.
My desktop is running across 3 monitors, and I really think that I can be more productive using all 3. The setup allows me to keep Netbeans open on one monitor, Chrome open on the second to see whether the code that I just typed looks like I want it to, and references on the third.
The problem is that it’s harder for me to get into a working mode with 3. I’ve found myself switching to my notebook more often recently. It just seems easier to concentrate with one little 13.3 inch screen instead of 3.
Not sure what the answer is, or whether there is one. But there is some irony in the fact that I was trying to work on some code and the idea of this post distracted me enough to come here and type it out.
Needed a way to practice a bit for the CCNA exam that I’m planning on taking within the next few months. I’ve found a bunch of multiple choice banks to cover a lot of the memorization, but was looking for a way to practice more with network addressing. Sure, there are some multiple choice banks out there. But real-world isn’t multiple choice, so I wanted a better way.
An obligatory screen capture. Nothing exciting, but here it is anyway.
Had to do a quick update for my Plain Text Custom Post Type WordPress plugin.
So a quick remove_action to get the Jetpack action out of shutdown on the plain text posts and it appears to be working without a hitch now.
New version is up at the WordPress Plugin Site.
I’ve blown some dust out of computers, but nothing like this.
A few months ago I setup an Oracle VirtualBox on my main computer to act as a web server to develop against without needing a separate machine. Took until yesterday to figure out how to get the bridged networking option working with other machines on the network though. Short answer, I had originally set it up as a host only network and put the name in my hosts file and that conflicted once I switched to bridged. More to it than that, but probably should be its own post.
The reason for the switch was so that I could have the VM on my network and use any computer to connect instead of just my desktop. Worked fine, except for my MacBook.
I was able to ping both ways, traceroute looked fine, and I could view web pages via the Apache web server on the VM. The network connection was good.
Problem was that the VM wouldn’t accept my password when I tried to connect from the Mac. Vista machines were fine. Just not the Mac.
After too much time spent searching I did what I should have done first and looked at the console logs on the notebook. And plain as day was the problem. Snow Leopard didn’t like sending the passwords in plain text.
One switch on the Samba side to require encrypted passwords and it’s working perfectly.