2009-08-28-WordPress-Widget-Development

777 views

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
777
On SlideShare
0
From Embeds
0
Number of Embeds
4
Actions
Shares
0
Downloads
9
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

2009-08-28-WordPress-Widget-Development

  1. 1. WordPress Widget Development By Warwick Booth
  2. 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. 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. 4. Background <ul><ul><li>Where to find info </li></ul></ul><ul><ul><li>Where I find help </li></ul></ul>
  5. 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. 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. 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. 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. 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>

×