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. Continue reading

Posted in Code, WordPress | Tagged , , , , , | 1 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. Continue reading

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.

 

Continue reading

Posted in Plugins | Tagged , , , , , | 19 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. Continue reading

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

FOUND: A Guide to The Most Profitable Service Industry Niches

Keyword Niche Finding Sniper

This should be tagged as “Dangerously Powerful”

At the bottom of this article is a download
containing detailed per-lead pricing for hundreds of industries.

The ServiceMagic Fee Schedule is a guide to where the money is.

When trying to create niche websites, research is very important. You need to ask the following questions:

  • What are the most profitable industries?
  • How much can I make or should I charge per lead/sale?
  • What keywords should I focus on?

ServiceMagic.com has done all the work for you.

Service Magic provides cost per lead data on virtually all home services-related industries and some others including pet sitting ($10/lead), photo portraits ($12/lead), wedding DJ ($12/lead). Continue reading

Posted in SEO | Tagged , , , , , , | 10 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. Continue reading

Posted in Plugins | Tagged , , , , , | 73 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. Continue reading

Posted in Plugins | Tagged , , , | 56 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. Continue reading

Posted in Plugins, WordPress | Tagged , , , , , | 4 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. Continue reading

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