The Secret to Problem Solving

Eureka! I just finished figuring out a perplexing problem with the current project that I am working on. In this case it happens to be state caching in the Ionic app I am building. This is my first phone app and I am actually feeling pretty accomplished. In a little over a week I have a Read More…

Work in Progress

I am in the process of revamping my website. In the process I will be making my blog posts visible. I still need to figure out the best way to display my code snippets, so for now they look pretty terrible.

Comments Broken

So, I was working on a site the other day, and for some reason I could not for the life of me get the comments working. I tried searching online for a few hours with no success. Nothing showed up at all no matter what I did. I finally deleted my comments.php file and then Read More…

Filter Youtube oembeds

I’m not sure how all of this code works exactly, but I was able to use it to remove the controls and title info by adding &showinfo=0&controls=0 to the youtube embeds on a website. /** * Add Custom Parameters to YouTube Embeds */ function namespace_oembed_youtube_no_title( $html, $url, $args ) { // Only run this for Read More…

Change Posts default Name and Icon

This is how to change the default ‘posts’ to ‘videos’ and swap out the dashicon for the video icon <?php //Rename “Posts” to “Videos” add_action( ‘admin_menu’, ‘bigmoney_change_post_menu_label’ ); add_action( ‘init’, ‘bigmoney_change_post_object_label’ ); function bigmoney_change_post_menu_label() { global $menu; global $submenu; $menu[5][0] = ‘Videos’; $submenu[‘edit.php’][5][0] = ‘Videos’; $submenu[‘edit.php’][10][0] = ‘Add Videos’; $submenu[‘edit.php’][16][0] = ‘Video Tags’; echo ”; Read More…

Auto Populate Featured Post

After lots of searching I finally found a plugin that will autopopulate the featured image in a post using the first image in the post itself. Its called Auto Post Thumbnail http://wordpress.org/plugins/auto-post-thumbnail/ It’s pretty straight forward and simple to use.    

Populate text area with values from custom attributes in dropdown

jQuery(document).ready(function($){ //this populates the readonly text area with the event details jQuery(‘#input_1_1’).change(function(){ var datetime = $(‘option:selected’, this).attr(‘datetime’); var venue = $(‘option:selected’, this).attr(‘venue’); var address = $(‘option:selected’, this).attr(‘address’); var city = $(‘option:selected’, this).attr(‘city’); var state = $(‘option:selected’, this).attr(‘state’); var zip = $(‘option:selected’, this).attr(‘zip’); jQuery(‘#input_1_2’).val( datetime + “\n”+ venue + “\n”+ address + “\n” + city + Read More…

Populate hidden text input with custom attributes from radio button

jQuery(document).ready(function($){ //this populates the hidden text inputs with the event details jQuery(‘#input_2_1’).change(function(){ var datetime = jQuery(‘input[name=”input_1″]:checked’, this).attr(‘datetime’); var venue = jQuery(‘input[name=”input_1″]:checked’, this).attr(‘venue’); var address = jQuery(‘input[name=”input_1″]:checked’, this).attr(‘address’); var city = jQuery(‘input[name=”input_1″]:checked’, this).attr(‘city’); var state = jQuery(‘input[name=”input_1″]:checked’, this).attr(‘state’); var zip = jQuery(‘input[name=”input_1″]:checked’, this).attr(‘zip’); jQuery(‘#input_2_11’).val( datetime ); jQuery(‘#input_2_12’).val( venue ); jQuery(‘#input_2_13’).val( address ); jQuery(‘#input_2_14’).val( city ); jQuery(‘#input_2_15’).val( Read More…