show posts

Stranger Things

I finished watching the final episode of Stranger Things tonight. I had watched through the first four seasons over the years. Sometime before season five was released, I decided to watch through the first four again. Thinking they might like it, I invited my mom and dad to watch through with me. My mom wasn't interested, but my dad was, so we watched a few episodes a week, however long that took, from the beginning through the end of the new season. It was a long journey, but it was good.

Continue reading post "Stranger Things"

I watched the Columbo episode "The Bye-Bye Sky High IQ Murder Case" for the second time, and have come to believe that Columbo knew about the umbrella in the chimney and had seen it before it was removed by Brandt. Continue reading post "#3378"


Spent 30-40 minutes this morning shoveling the street, clearing a path in the cul-de-sac for my car to get through to the point in the street with low enough snow for my car to get through. Continue reading post "#2199"


Wordpress: Shortcodes

I've been playing with shortcodes in Wordpress. They provide a nice way to allow the client to insert certain content without them needing to even deal with HTML, such as predefined pieces or wrappers with specific classes or structure. They are the only way to effectively run PHP functions from within a page without actually allowing PHP code to be run. This can allow pulling things from data, such as custom fields or from Pods CMS. The built in [gallery] shortcode, for instance, pulls image data from the database about images connected to a post.

It's very easy to add a shortcode. You create a function that does what you want and returns a string to output in place of the shortcode then use the add_shortcode() function of Wordpress to attach it as a shortcode. The function is done like:

function repFunctionName($repArguments, $repContent=null){
	return "some string";
}

$repArgument is an array of arguments passed to the shortcode like:

[repShortcode repArgument1="value1" repArgument2="value2"]
Continue reading post "Wordpress: Shortcodes"

</toby>