While attempting to upload some videos this week, WordPress did not allow me to upload certain file types. I found this helpful page and information: http://msyk.es/blog/adding-removing-allowed-filetypes-wordpress-media-library/ I added the following code in the theme's functions.php file to allow me to import my video files. function my_myme_types($mime_types){ $mime_types['f4v'] = 'video/f4v'; //Adding f4v extension return $mime_types; } add_filter('upload_mimes', … [Read more...]
WordPress Maximum Media File Upload Size
This week I have been trying to import some video files to a website. By default, WordPress limits the size of a file to 8M. Not very large for when we need to upload video files. In researching the solution for this, I found this post: http://bavotasan.com/2012/increase-max-upload-file-size-in-wordpress/ The key is to create a php.ini file and put it in the wp-admin folder. I've added the following in my php.ini file: memory_limit = 100M upload_max_filesize = 100M post_max_size = … [Read more...]
htaccess woes solved
This week I had a URL rewrite/forwarding issue with one of the websites that I created. The site was rebuilt in WordPress from a static HTML website. The client wanted to make sure that old links took people to an appropriate page or similar page on the new site which now had new or different url's. So we have created several rewrite rules in the .htaccess file (this is a file that has several settings and configurations for this site). Everything worked great for all of the links except for 2 … [Read more...]
Shortcodes in WordPress

I've been creating WordPress themes and websites for many years now and I still love learning new things - like shortcodes. I knew there was a lot of power just waiting to be welded with shortcodes, but because Genesis is such a powerful and feature-rich framework, I haven't needed to create any shortcodes of my own. A recent job though provided me the opportunity to create my own shortcode. The client wanted to show the author's avatar in post listings and details. This particular custom child … [Read more...]