WordPress Date & Time Formatting

Category: Code & Design
2 Comments | Add Yours

Call it OCD, but I’m a little anal when it comes to designing layouts because I want them to look exactly how I envision it. When I started using WordPress, I had to learn through dozens of tutorials and FAQ’s to create my current theme.

One issue I came across was the ability to display the date on all entries. I noticed that when I published two or more entires in one day, the date would only show on the more recent post of that day, leaving an empty line between the title and category. The code I originally used was:

<?php the_date() ?>

After scouring the Internet for a solution, I realized that in order to display the date on all entries, I would have to change the code to this:

<?php the_time(‘j’) ?> <?php the_time(‘F’) ?> <?php the_time(‘Y’) ?>

This is a longer, more specific code that tells the page to load the date, month, and year every time, regardless of multiple entries in one day.

I hope you find this helpful because it took me a while to figure it out! ;)

For more information on customizing the date and time, check out WordPress Codex.








WordPress Smilies

Category: Code & Design
Comment On This Post

Smilies are glyphs used to convey emotions in your writing. By default, WordPress automatically converts text smilies into graphic images. Some examples are:

‘;-) is equivalent to smile emoticon

‘:-) is equivalent to smile emoticon

‘:-? is equivalent to confused

Needless to say, they’re a great way to brighten up posts! Now how can we customize these smilies? Simple!

  1. Find your smiley image files in the /wp-includes/images/smilies directory and back them up to another directory.
  2. Note the names of each smiley file. Your files must match these names and should be in the same ‘gif’ image format.
  3. For predictable behavior, the image sizes should be similar.
  4. Upload your new files to the /wp-includes/images/smilies directory with an FTP program.

You can also find WordPress Plugins to allow you to customize your smilies. :D

For more information on using smilies, check out WordPress Codex.








Wireless Internet Connection Issue on MacBook

Category: Web & Technology
Comment On This Post

I traded my PC for a MacBook last Christmas and few months ago I started experiencing internet disconnections. My internet would crap out every half hour, then it turned into every ten minutes, to five minutes, until finally it couldn’t hold a connection for more than 30 seconds. Believe me, I was really irritated!

So I looked into this. Turns out, this wireless internet connection issue with Macs has been ongoing since 2007. I tried updating my firmware and airport client but still no luck.

After going through dozens of suggestions, only one solution worked for me. If you’re experiencing the same problem, try this:

  1. Open System Preferences and click on Network.
  2. Click on the Airport tab.
  3. By default, “Automatic” should be selected for the Location.
  4. Scroll down in the Location box to add and set a new location (i.e. “Home” or “School”).
  5. Click on the Advanced… button and add a Preferred Network.
    The list of Wi-Fi locations are in the order of choice with the first choice on top.
  6. Click OK and Apply.
  7. Walaaah! You’ve got your steady wireless connection back!

Crap-free for almost three months now and still going strong! I wish I could find what triggered it or a permanent fix for this problem but until Apple releases an update, this will have to suffice.








Books

Category: Books & Beats
Comment On This Post

If you’re starting your own library, all that matters is that you start with what you love.

-Oprah

Here are a handful of books that I recommend you read and add to your personal library. I’ve learned a lot from them and I hope you gain some by diving into reading them too!

But wait! There’s another 1001 must reads from Listology!








Sunday Getaway

Category: Shutterbug
Comment On This Post

We decided to take a trip out to the city to escape from the Sacramento heat, enjoy the photos!

The Golden Gate Bridge.

Seal Rocks Beach off Point Lobos Ave.

Watching him watch the tides.

The view from Treasure Island.

Bokeh.

flickr photostream Jump to my Flickr Photostream for more!