Archive for 2011


try this out with my site… grab the corner of the browser and minimize slowly. at a certain point, which should be 800px, you’ll notice a change. that’s the stylesheet being smart and enabling a few rules i put in place to either hide, resize, or re-arrange different elements.

even this image should resize and not cause horizontal sliders to appear:

ideally, the photo slides shouldn’t get cut off by the browser — they should at least resize until they are hidden from view. i need to work on that. that paper-like border i put around it kind of makes things difficult.

like i said, it’s a work in progress…

it’s neat tho — not needing to create an entirely separate template just for mobile browsers. why not just use what everyone sees and make changes to it accordingly! genius!

new home… feels roomy

so I FINALLY got my domain name and hosting transfered over to our gorirra account at hostgator… it’s something I’ve been meaning to do, I just knew it meant I had to create a new theme

so here it is… much like jurassic park, there are a few glitches here and there but all will be ironed out soon enough

I wanted a theme where I could easily showcase my favorite pictures I’ve taken with my brand new sony nex-3. I came up with this sorta hybrid of a photo gallery/blog…

I may write a post of the backend php stuff I wrote in order to get this to work out the way it does

I’m also happy that the site is responsive… err… will be responsive. if you view it thru your phone, you’ll see the gallery frame a little too tall and a few other things… the hulu embed also breaks the container a bit

I’ve been meaning to learn responsive web design and I plan to implement stuff to this site… should be fun

btw, all the old posts are still here.. gotta love wordpress for that… so go and look around at all my ellipses and lazy writing

* mind the spelling and typos… posting from my phone

phone post

hello world


wordpress php snippets

here are a bunch of frequently used code snippets i’ve used with many of my projects

* i really should know these by now… but what are ya gonna do?

linking to the homepage

    <a href="<?php echo get_option('home'); ?>">...</a>

    image references

      <img src="<?php bloginfo('stylesheet_directory'); ?>/images/FILE_NAME.jpg"
      alt="<?php bloginfo('name'); ?>" title="<?php bloginfo('name'); ?>" />

      dynamic widgets

        <?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('WIDGET_NAME') ) : ?>
        <?php endif; ?>

        then, in functions.php, add this:

        'before_widget' => '',
        'after_widget' => '',
        'before_title' => '<h3>',
        'after_title' => '</h3>',

        custom fields – mentioned before on my site, but just to have ’em all together

          <?php $VARIABLE_NAME=get_post_meta($post->ID, "CUSTOM_FIELD_NAME", true);
          if (get_post_meta($post->ID, "CUSTOM_FIELD_NAME", true)) {
          echo ("<img src=\"FULL_PATH_TO/$VARIABLE_NAME\" />");
          } ?>


            &copy; <?php echo date('Y'); ?> - <?php bloginfo('name'); ?>

            frequently used wordpress plugins

            i needed to keep a list of the wordpress plugins i use, either on my personal site or on the various other sites i’ve worked on


            • all in one seo pack
            • google analyticator
            • google xml sitemaps
            • db cache reloaded fix
            • hyper cache

            dependent on project

            • anyvar
            • custom post limits
            • shadowbox js
            • wordpress related posts
            • contact form 7 (+really simple CAPTCHA)
            • audio player
            • my page order
            • widget entries

            i need to also put frequently-used code… nice segue, joe…