Tag Archives: WordPress Development

Passing parameters from PHP to Javascripts in plugins » Otto on WordPress

Much cleaner. One static and unchanging JS file to cache. Parameters get put into your HTML itself as a one-liner. You can deal with the parameters using a normal PHP array before passing them over. No need to screw around with generating Javascript from PHP or looking for wp-load or even messing with tricky actions.

via Passing parameters from PHP to Javascripts in plugins » Otto on WordPress.

Posted in QuickTip, WordPress | Tagged , , , | 1 Comment

Storing Data in WordPress Plugins – A Quick Rundown

Beatles love WordPress

Coding better WordPress plugins

As I’ve worked with WordPress plugins, I’ve learned new ways of working with WordPress. WordPress has tons of built-in functionality that is very useful and easy to use once discovered.

I am by no means a great PHP coder. I am still learning OOP principles and how to write code better. In creating new WordPress plugins (see a list of my plugins), I have improved how I code: writing more efficient code using WordPress functionality rather than hacks.

One of the methods of coding that I have discovered (thanks to Jeremy Clarke) is using the WP Cache and Transient APIs to store plugin data. It’s made a big difference in the speed of all my plugins.

The following is a quick review of three different ways of storing data when you code plugins or work with WordPress. This is to the best of my knowledge, and I welcome feedback/improvements in the comments.

Posted in Code, WordPress | Tagged , , , , , | Leave a comment

EasyVideoPlayer WordPress Plugin

Easy Video Player

Embed EasyVideoPlayer videos to WordPress

Finally add videos inside your WordPress content without the hassle!

Download the plugin from WordPress.org

It’s been hard — and very technical — to embed EVP videos inside WordPress content…until now. The EVP plugin for WordPress changes everything – it is now simple to add EVP videos to your content.

Posted in Plugins | Tagged , , , , , , , | 41 Comments

Lottery Results – A New WordPress Plugin

Lottery Results

Download the plugin at WordPress.org

For plugin support, please visit the support forum.

Show lottery results from all 43 states with lotteries

  • Choose which games you want to display
  • Choose from different lotto results layouts
  • Embed results in your content using the lottery] shortcode.

The widget automatically gets updated results every 6 hours, then they are stored in your website for very fast load times.

 

Posted in Plugins | Tagged , , , , , | 11 Comments

Two Easy Ways to Add “nofollow” to WordPress Menu Items

By default, WordPress menus don’t have the ability to add “nofollow” to the link items…but WordPress 3.0+ has the functionality built in.

This tutorial will show you how to add nofollow to specific items using the new wp_nav_menu() function.

Posted in Tutorial, WordPress | Tagged , , , , | 9 Comments

Snow Report – Ski Mountain Conditions Plugin for WordPress

Denver Snow

Get the latest ski/snowboarding conditions from your favorite area or mountain using the Snow Report WordPress plugin.

The plugin uses the OnTheSnow.com website’s data feeds that provide the most accurate, up to date information available.

Posted in Plugins | Tagged , , , , , | 41 Comments

Weather Forecasts for WordPress – WP Wunderground Plugin

This is the official plugin support page for the Wunderground plugin. Download it now from WordPress.org.

Do you need plugin support or have comments?

For information on how to use the Wunderground plugin, please view the plugin page.

Posted in Plugins | Tagged , , , | 54 Comments

5 Easy Ways to Disable the Gravity Forms CSS Stylesheet

Pliers

We can do this the easy way or the hard way. What’ll it be?

The WordPress form plugin Gravity Forms (if you don’t use it, you should — it’s great) comes with a stylesheet found at [plugin-directory]/plugins/gravityforms/css/forms.css. SEODenver.com’s is found here.

If you want to turn off styles for Gravity Forms, there are a few different ways. Here are five examples of how to turn off CSS for the form plugin.

Posted in Plugins, WordPress | Tagged , , , , , | 2 Comments

WordPress.org Changes Plugin Page Layout

WordPress.org plugin page layout change likely for usability

Wordpress.org plugin page from 2008

What the WordPress.org plugin page used to look like.

A couple of weeks ago, WordPress.org changed the layout of their plugins directory plugin pages. The update was likely to improve usability for users trying to determine whether a plugin is trustworthy and what it does. I believe the re-arranging of the page has achieved those goals.

The update removes author links

The layout redesign removes links to the official plugin page. I believe this makes it more difficult for users trying to get support on plugins.

Removing links also affects plugin authors. One of the ways that plugin authors are “rewarded” for creating plugins used to be a link from the WordPress.org website. This resulted in two things: increased traffic to the author’s website and some passed SEO value from the WordPress website to the author’s website.

I recommend all authors to go back through their readme.txt files and add a link to their support pages.

Posted in Web Development | Tagged , , , , , | Leave a comment

Auto-Optimize WordPress Database without a Plugin

Improve the speed of your blog, just like these running horses are faster because they bleached their hair.

These horses are somehow not cool. Speeding up your blog is.

I am working on a WordPress project that has a pretty heavy database, and I want to be able to auto-optimize the WordPress database. Even though they are integrating this functionality into WordPress 3.0, I want it now, and without having to use a plugin (I have had some issues with WP-DBManager configuring properly on a few sites).

If you add the following code to your functions.php file, it will automatically optimize your WordPress database every 6 hours, keeping it squeaky clean.

Posted in Code, WordPress | Tagged , , , , , , , | 6 Comments
12