Your SlideShare is downloading. ×
0
2009-08-28-WordPress-Widget-Development
2009-08-28-WordPress-Widget-Development
2009-08-28-WordPress-Widget-Development
2009-08-28-WordPress-Widget-Development
2009-08-28-WordPress-Widget-Development
2009-08-28-WordPress-Widget-Development
2009-08-28-WordPress-Widget-Development
2009-08-28-WordPress-Widget-Development
2009-08-28-WordPress-Widget-Development
2009-08-28-WordPress-Widget-Development
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

2009-08-28-WordPress-Widget-Development

628

Published on

Published in: Technology, Business
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
628
On Slideshare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
8
Comments
0
Likes
0
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 1. WordPress Widget Development By Warwick Booth
  • 2. Agenda <ul><ul><li>Introduction </li></ul></ul><ul><ul><li>Background </li></ul></ul><ul><ul><li>Before you start </li></ul></ul><ul><ul><li>Basic Widgets </li></ul></ul><ul><ul><li>Widget Control </li></ul></ul><ul><ul><li>Functions.php  </li></ul></ul><ul><ul><li>Wrap + Q&A </li></ul></ul>
  • 3. Introduction <ul><ul><li>Who am I </li></ul></ul><ul><ul><li>What we will be chatting about </li></ul></ul><ul><ul><li>What are we trying to achieve. </li></ul></ul>
  • 4. Background <ul><ul><li>Where to find info </li></ul></ul><ul><ul><li>Where I find help </li></ul></ul>
  • 5. Before you start <ul><ul><li>Create your files </li></ul></ul><ul><ul><li>Set up frame work </li></ul></ul><ul><ul><li>Set up empty functions </li></ul></ul><ul><ul><li>Version Check </li></ul></ul>/* Plugin Name: WP-PageNavi Plugin URI: http://lesterchan.net/portfolio/programming/php/ Description: Adds a more advanced paging navigation to your WordPress blog. Version: 2.40 Author: Lester 'GaMerZ' Chan Author URI: http://lesterchan.net */
  • 6. Basic Widgets <ul><ul><li>Create a widget </li></ul></ul><ul><ul><li>Register a widget </li></ul></ul><ul><ul><li>Call the Widget </li></ul></ul>
  • 7. Widget Control <ul><ul><li>HTML Forms </li></ul></ul><ul><ul><ul><li>$_Post Vars </li></ul></ul></ul><ul><ul><li>Saving Options </li></ul></ul><ul><ul><li>Displaying options </li></ul></ul>
  • 8. Functions.php <ul><ul><li>Why functions.php </li></ul></ul><ul><ul><li>What to move </li></ul></ul><ul><ul><li>$Args </li></ul></ul><ul><ul><li>Global widgets for BuddyPress </li></ul></ul>function list_authors_widget($args) { $targs = array(     'optioncount'   => false,     'exclude_admin' => false,     'show_fullname' => false,     'hide_empty'    => true,     'echo'          => true,     'style'         => 'list'     ); ?> <h2 class=&quot;widgettitle&quot;><span class=&quot;&quot; rel=&quot;29&quot;>Author List</span></h2> <?php    echo '<ul>'; wp_list_authors( $targs ); echo '</ul>'; }
  • 9. Wrap up Q + A <ul><ul><li>Basics of creating a widget </li></ul></ul><ul><ul><li>Global widgets for BuddyPress </li></ul></ul>
  • 10.  

×