SkyVerge Test
Down the Rabbit Hole: WordPress and Timezones August 21 2013
“Why, sometimes I’ve believed as many as six impossible things before breakfast.” ― Lewis Carroll, Alice in Wonderland A few months ago, we were working on the WooCommerce Pre-Orders extension and had to think about how we wanted to store the release date & time. Like most concepts that look simple and easy at first, this turned out to be somewhat complex. Throughout development, I ended up learning quite a Keep Reading…
The post Down the Rabbit Hole: WordPress and Timezones appeared first on SkyVerge.
Translating a WordPress Plugin on the Command Line Step by Step March 01 2013
The purpose of this article is to provide a quick and easy to follow step-by-step guide to extracting text strings from a WordPress plugin for translation from the command line. Although this is documented in the codex: I18N for WordPress Developers and Translating WordPress, those articles are somewhat lengthy and the first time I was asked to internationalize a plugin it took me some time to find the actual steps Keep Reading…
The post Translating a WordPress Plugin on the Command Line Step by Step appeared first on SkyVerge.
WordPress Get DB Table Column Names January 14 2013
To get the column names for a MySQL database table in WordPress, use the following: global $wpdb; $table_name = $wpdb->prefix . 'posts'; foreach ( $wpdb->get_col( "DESC " . $table_name, 0 ) as $column_name ) { error_log( $column_name ); } Which will result in something like the following being printed to your debug.log: ID post_author post_date post_date_gmt post_content ... You get the idea
The post WordPress Get DB Table Column Names appeared first on SkyVerge.
Don’t Share Terms Between WordPress Taxonomies November 20 2012
By default WordPress will reuse terms with the same name and slug between different taxonomies (at least for now). For instance, if you add the term ‘red’ as a tag, and then add the category ‘red’, the same wp_terms record will be shared between them. This is also true for any custom taxonomies you define (remember that despite their seeming differences, WordPress tags and categories are both implemented as taxonomies). Keep Reading…
The post Don’t Share Terms Between WordPress Taxonomies appeared first on SkyVerge.
Extending the WordPress XML-RPC API August 20 2012
The purpose of this article is to describe the WordPress XML-RPC API, explain how to use it, and demonstrate how to extend it to create custom API methods for interacting programmatically with WordPress. I assume a relative unfamiliarity with XML-RPC in general, WordPress XML-RPC, and spend time first covering the basics, if you want to skip straight to the section on extending the WordPress XML-RPC API, feel free to. What Keep Reading…
The post Extending the WordPress XML-RPC API appeared first on SkyVerge.
Writing a Plugin That Can Be Localized by WPML August 10 2012
Writing a custom plugin that can be translated by WPML (WordPress Multilingual) using .mo files is actually quite simple once you figure out how to generate the .mo file. My first attempt to internationalize my plugin with WPML however was less than successful, WPML would not localize my plugins text strings. I knew my .mo file was correct, and could be loaded by WordPress because when I set WPLANG to Keep Reading…
The post Writing a Plugin That Can Be Localized by WPML appeared first on SkyVerge.
WordPress Pretty Category Permalinks Broken and Fixed July 26 2012
This is probably another one of those situations that applies only to me, but just in case someone else out there happens to have this same broken permalink issue, I’ll describe what happened to my site, and how I fixed it. The specifics of my setup were: WordPress 3.4.1, WordPress SEO 1.2.5, and the custom permalink structure /%category%/%postname%/. The problem that someone thankfully alerted me to (gotta get back in Keep Reading…
The post WordPress Pretty Category Permalinks Broken and Fixed appeared first on SkyVerge.
How to Create a Custom WordPress Post Type With Image Uploads July 12 2012
This article details one method of creating a custom WordPress post type with the ability to upload and attach images using the built-in WordPress Media browser. This piece does not cover all the details and nuances of creating a custom post type, as this is covered well elsewhere. In addition to highlighting the most important methods and code required, I have attached a fully functional demo plugin which you may Keep Reading…
The post How to Create a Custom WordPress Post Type With Image Uploads appeared first on SkyVerge.
How to Add a WordPress Admin Menu Notification Bubble June 27 2012
Adding one of those nifty WordPress admin menu notification number bubbles to your custom menu/submenu is quite easy. Just append the following snippet to your menu/submenu name and you're good to go:
The post How to Add a WordPress Admin Menu Notification Bubble appeared first on SkyVerge.
How to Add a WordPress Plugin Action Link June 25 2012
I always prefer it when plugins make it as easy as possible to find their configuration page. When I install a new plugin the last thing I want to do is hunt around for some hidden menu item, I want to play around with my new toy! And what better place to link to a plugin’s configuration than right from the admin Plugins page where the plugin is activated, deactivated Keep Reading…
The post How to Add a WordPress Plugin Action Link appeared first on SkyVerge.
Debugging WordPress June 11 2012
The following are some techniques I use nearly every day for debugging WordPress and WooCommerce, and can be used for plugin or theme development equally. Echoing or printing to the screen will only get you so far when debugging, especially in a complex framework like WordPress; to really understand the code flow, and to trace and fix issues, you need to be able to log messages to a file. For Keep Reading…
The post Debugging WordPress appeared first on SkyVerge.
WordPress Settings API Hidden Field April 22 2012
This short article covers one way of creating hidden fields with the WordPress Settings API. This is useful for more than just creating hidden input fields; for instance I used it when I wanted to render a number of checkboxes in a single field, yet still have the checkbox options managed by the Settings API. The WordPress Settings API The WordPress Settings API is a great, if poorly documented addition Keep Reading…
The post WordPress Settings API Hidden Field appeared first on SkyVerge.
Add a WordPress Custom Bulk Action April 05 2012
Like me you probably woke up this morning assuming that adding a new bulk action to WordPress would be as easy tracking down the correct filter or implementing the right action hook. If so, then you might have had a rude awakening when you attempted to make use of the promising-looking filter named bulk-actions-screenid and failed. Thanks to a couple of posts on the subject I was able to create Keep Reading…
The post Add a WordPress Custom Bulk Action appeared first on SkyVerge.
Magento/WordPress Development and Deployment March 21 2012
First off, this post owes a debt of gratitude to Ashley Schroder and Colin Mollenhour, without whom it would not exist. The goal of this article is to describe a development environment configuration that’s ideally suited for developing and deploying version controlled plugin/extension code, that is plugged in to a much larger system codebase. This is precisely the situation when developing extensions/override code for Magento, or plugins for WordPress and Keep Reading…
The post Magento/WordPress Development and Deployment appeared first on SkyVerge.
WordPress Comments Feed 404 Fixed February 03 2012
I logged in to Google Webmaster Tools today and was greeted with a new crawl error, specifically a 404 Not Found for the Comments Feed url http://www.skyverge.com/comments/feed/. I requested the page and sure enough, it was indeed a 404. A quick search turned up a number of threads and discussions regarding this issue, which seems to stem from having a new site without a single comment yet. How embarrassing. Now, Keep Reading…
The post WordPress Comments Feed 404 Fixed appeared first on SkyVerge.