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…
There are a few things that I had to figure out the hard way to get my google maps working correctly. The Documentation on the Advanced Custom Fields website was ok, but it was missing a few things that I had to figure out for myself. First, sometimes there is a weird bug that makes Read More…
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.
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…
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…
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…
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.
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…
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…
It turns out that WordPress has a set of built in dashicons that you can use in the backend dashboard, say for custom post types, or also on the frontend. It’s pretty cool. Check it out. http://wpsites.net/web-design/adding-dashicons-in-wordpress/ http://melchoyce.github.io/dashicons/