SlideShare a Scribd company logo
1 of 52
Tips and Tricks
Stephanie Leary   sillybean.net   @sleary
Who am I?
• sillybean.net

• uwc.tamu.edu

• @sleary

• slideshare.net/
  stephanieleary
Importing
I’ve imported from...
• Blogger         • Joomla

• Movable Type    • Drupal

• Textpattern     • Twitter

• LiveJournal     • Gallery2

• WordPress.com   • Delicious

• CSV files       • HTML files
Uncommon Imports
http://codex.wordpress.org/Importing_Content
HTML Import
Secrets of
Happy Importing
Preparation
• Back up
• Prepare to undo
• Import on development server
 • Or turn on maintenance mode
• Turn off crossposting plugins
• Use absolute URLs for linked files
Plugins
• DB Backup
 http://wordpress.org/extend/plugins/wp-db-backup/

• Mass Page Remover
 http://wordpress.org/extend/plugins/mass-page-remover/

• WordPress Reset
 http://wordpress.org/extend/plugins/wordpress-reset/

• Maintenance Mode
 http://wordpress.org/extend/plugins/maintenance-mode/
WordPress export
• Posts, pages, comments, authors
• Uploads optional
• No settings
• No menus in 3.0 (fixed in 3.1)
• Category slug issues (fixed in 3.1)
• Skips users with no posts
Uncommon imports
• Twitter
  http://wordpress.org/extend/plugins/twitter-importer/

• Delicious
  http://wordpress.org/extend/plugins/delicious-xml-importer/

• Gallery2
  http://wordpress.org/extend/plugins/gallery2-importer/

• HTML
  http://wordpress.org/extend/plugins/import-html-pages/
Uncommon imports
• Joomla/Mambo
 •   1.0 to WP 2.7x: http://tinyurl.com/joom2wp

 •   1.5 to WP 3.0x: http://wordpress.org/extend/plugins/
     joomla-15-importer/

• Drupal
 •   6.x to WP 2.7x: http://tinyurl.com/dru6wp2

 •   5.x to WP 2.7x: http://tinyurl.com/dru5wp2

• CSV
 http://wordpress.org/extend/plugins/csv-importer/
After importing
• Search & Replace
  http://wordpress.org/extend/plugins/search-and-replace/

• Redirection
  http://wordpress.org/extend/plugins/redirection/

• Add Linked Images to Gallery
  http://wordpress.org/extend/plugins/add-linked-images-
  to-gallery-v01/
?
Screen Options
Bulk Edit
Private Status
Short Links
 the_shortlink();
Good Permalinks
• Include any numeric code
• DON’T use:
  /%category%/%postname%/
• Why?
 http://dougal.gunters.org/?p=1431
Dashboard Feeds
Options.php
http://blog.tanist.co.uk/files/unserialize/
Hidden Feeds
Feed                   Default URL               Clean URL

                      /?feed=rss2               /feed
     Basic            /?feed=atom               /feed/atom

          /?feed=comments-rss2                  /comments/feed
 Comments /?feed=comments-atom                  /comments/feed/atom

  Category            /?feed=rss2&cat=1         /category/news/feed
(ID: 1, slug: news)   /?feed=atom&cat=1         /category/news/feed/atom

      Tag             /?feed=rss2&tag=book      /tag/book/feed
   (slug: book)       /?feed=atom&tag=book      /tag/book/feed/atom

      Tags            /?feed=rss2&tag=book+dvd /tag/book+dvd/feed
(slugs: book, dvd)    /?feed=atom&tag=book+dvd /tag/book+dvd/feed/atom
Feed                  Default URL                   Clean URL

  Author         /?feed=rss2&author=2         /author/joe/feed
    (ID: 2,
nickname: Joe)
                 /?feed=atom&author=2         /author/joe/feed/atom


Post Type /?feed=rss2&post_type=page          /feed/?post_type=page
(page; course)   /?feed=atom&post_type=course /feed/atom/?post_type=course

Taxonomy /?feed=rss2&genre=mystery            /genre/mystery/feed
  (genre:
  mystery)
                 /?feed=atom&genre=mystery    /genre/mystery/feed/atom

  Search         /?feed=rss2&s=wordpress      /feed/?s=wordpress
   Term          /?feed=atom&s=wordpress      /feed/atom/?s=wordpress
 (wordpress)
Filters
Shortcodes in Widgets
 add_filter( 'widget_text',
 'shortcode_unautop');
 add_filter( 'widget_text',
 'do_shortcode');




         http://sillybean.net/?p=2719
List Child Pages
function append_child_pages( $content ) {

    $children = '';

    if ( is_page() && (empty( $content )) ) {

        global $post;

        $children = '<ul class="childpages">'
                    .wp_list_pages('echo=0&title_li=&child_of='.$post->ID)
                    .'</ul>';

    }

    return $content.$children;

}

add_filter( 'the_content' , 'append_child_pages' );

                      http://sillybean.net/?p=5246
User Contact Info
function change_contactmethod( $contactmethods ) {

    // Add some fields
    $contactmethods['twitter'] = 'Twitter Name (no @)';
    $contactmethods['phone'] = 'Phone Number';
    $contactmethods['title'] = 'Title';

    // Remove AIM, Yahoo IM, Google Talk/Jabber
    unset($contactmethods['aim']);
    unset($contactmethods['yim']);
    unset($contactmethods['jabber']);

    // make it go!
    return $contactmethods;

}

add_filter('user_contactmethods','change_contactmethod',10,1);


                  http://sillybean.net/?p=2714
http://sillybean.net/?p=2715
Evaluating
Themes & Plugins
Evilness
• base64()
• eval()
• links you can’t remove
• etc.


• get things from wordpress.org!
Exploit Scanner
http://wordpress.org/extend/plugins/exploit-scanner/
?
New in 3.1
• admin bar
• internal links
• network admin
• sortable columns
• better theme search
New in 3.1
• post formats
• custom post type archives
• hidden meta boxes
• advanced taxonomy queries
  http://otto42.com/81
For Developers
• user_can
• get_users
• has_term
• single_term_title
For Developers
• get_ancestors
• set_post_thumbnail
• esc_textarea
• submit_button
Thank you.
     Stephanie Leary
     sillybean.net
     @sleary

More Related Content

What's hot

What's hot (20)

Getting Started With WordPress Development
Getting Started With WordPress DevelopmentGetting Started With WordPress Development
Getting Started With WordPress Development
 
A Beginner's Guide to WordPress - Podcamp Toronto 2012
A Beginner's Guide to WordPress - Podcamp Toronto 2012A Beginner's Guide to WordPress - Podcamp Toronto 2012
A Beginner's Guide to WordPress - Podcamp Toronto 2012
 
WordPress Complete Tutorial
WordPress Complete TutorialWordPress Complete Tutorial
WordPress Complete Tutorial
 
A Beginner's Guide to Wordpress - WordCamp Montreal 2011
A Beginner's Guide to Wordpress - WordCamp Montreal 2011A Beginner's Guide to Wordpress - WordCamp Montreal 2011
A Beginner's Guide to Wordpress - WordCamp Montreal 2011
 
WordPress for beginners lesson 4 fall2015 JALC
WordPress for beginners lesson 4 fall2015 JALCWordPress for beginners lesson 4 fall2015 JALC
WordPress for beginners lesson 4 fall2015 JALC
 
What is (not) WordPress
What is (not) WordPressWhat is (not) WordPress
What is (not) WordPress
 
Getting Started With Wordpress
Getting Started With WordpressGetting Started With Wordpress
Getting Started With Wordpress
 
Wordpress for Dummies
Wordpress for DummiesWordpress for Dummies
Wordpress for Dummies
 
WordPress Webinar Training Presentation
WordPress Webinar Training PresentationWordPress Webinar Training Presentation
WordPress Webinar Training Presentation
 
Child Themes in WordPress
Child Themes in WordPressChild Themes in WordPress
Child Themes in WordPress
 
Word press for beginners lesson 3 jalc fall 2015
Word press for beginners lesson 3 jalc fall 2015Word press for beginners lesson 3 jalc fall 2015
Word press for beginners lesson 3 jalc fall 2015
 
Wordpress 101 Training
Wordpress 101 TrainingWordpress 101 Training
Wordpress 101 Training
 
Introduction To WordPress
Introduction To WordPressIntroduction To WordPress
Introduction To WordPress
 
Basic WordPress Workshop Presentation
Basic WordPress Workshop PresentationBasic WordPress Workshop Presentation
Basic WordPress Workshop Presentation
 
Your Site Has Been Hacked, Now What?
Your Site Has Been Hacked, Now What?Your Site Has Been Hacked, Now What?
Your Site Has Been Hacked, Now What?
 
How to Blog - #ACR14 Social Media Bootcamp
How to Blog - #ACR14  Social Media BootcampHow to Blog - #ACR14  Social Media Bootcamp
How to Blog - #ACR14 Social Media Bootcamp
 
A Beginner's Guide to WordPress - WordCamp Montreal 2012
A Beginner's Guide to WordPress - WordCamp Montreal 2012A Beginner's Guide to WordPress - WordCamp Montreal 2012
A Beginner's Guide to WordPress - WordCamp Montreal 2012
 
Powering Music Sites with WordPress
Powering Music Sites with WordPressPowering Music Sites with WordPress
Powering Music Sites with WordPress
 
WordcampNYC 2010 - Wordpress & Multimedia (Updated)
WordcampNYC 2010 - Wordpress & Multimedia (Updated)WordcampNYC 2010 - Wordpress & Multimedia (Updated)
WordcampNYC 2010 - Wordpress & Multimedia (Updated)
 
WordPress for Girl Geeks 2009-11-24
WordPress for Girl Geeks 2009-11-24WordPress for Girl Geeks 2009-11-24
WordPress for Girl Geeks 2009-11-24
 

Viewers also liked

Joost's Wordpress Affiliate Session @ LAC 2010
Joost's Wordpress Affiliate Session @ LAC 2010Joost's Wordpress Affiliate Session @ LAC 2010
Joost's Wordpress Affiliate Session @ LAC 2010
a4u
 
WordPress Ann Arbor: WP Tips and Tricks
WordPress Ann Arbor: WP Tips and TricksWordPress Ann Arbor: WP Tips and Tricks
WordPress Ann Arbor: WP Tips and Tricks
oneilldec
 
WordPress Tips and Tricks
WordPress Tips and TricksWordPress Tips and Tricks
WordPress Tips and Tricks
Hoeferweb
 
WordPress Optimisation - A4UExpo
WordPress Optimisation - A4UExpoWordPress Optimisation - A4UExpo
WordPress Optimisation - A4UExpo
Joost de Valk
 

Viewers also liked (11)

Joost's Wordpress Affiliate Session @ LAC 2010
Joost's Wordpress Affiliate Session @ LAC 2010Joost's Wordpress Affiliate Session @ LAC 2010
Joost's Wordpress Affiliate Session @ LAC 2010
 
Most widely used WordPress tips and tricks of 2016
Most widely used WordPress tips and tricks of 2016Most widely used WordPress tips and tricks of 2016
Most widely used WordPress tips and tricks of 2016
 
WordPress Ann Arbor: WP Tips and Tricks
WordPress Ann Arbor: WP Tips and TricksWordPress Ann Arbor: WP Tips and Tricks
WordPress Ann Arbor: WP Tips and Tricks
 
3 Essential Wordpress Tips
3 Essential Wordpress Tips3 Essential Wordpress Tips
3 Essential Wordpress Tips
 
WordPress Tips and Tricks
WordPress Tips and TricksWordPress Tips and Tricks
WordPress Tips and Tricks
 
Word Camp 2012 Presentation Tom Catalini
Word Camp 2012 Presentation Tom CataliniWord Camp 2012 Presentation Tom Catalini
Word Camp 2012 Presentation Tom Catalini
 
WordPress Tips & Tricks
WordPress Tips & TricksWordPress Tips & Tricks
WordPress Tips & Tricks
 
10 WordPress Tips
10 WordPress Tips10 WordPress Tips
10 WordPress Tips
 
WordCamp Ireland - 40 tips for WordPress Optimization
WordCamp Ireland - 40 tips for WordPress OptimizationWordCamp Ireland - 40 tips for WordPress Optimization
WordCamp Ireland - 40 tips for WordPress Optimization
 
Blogging Best practices: 40 tips in 40 minutes
Blogging Best practices: 40 tips in 40 minutesBlogging Best practices: 40 tips in 40 minutes
Blogging Best practices: 40 tips in 40 minutes
 
WordPress Optimisation - A4UExpo
WordPress Optimisation - A4UExpoWordPress Optimisation - A4UExpo
WordPress Optimisation - A4UExpo
 

Similar to WordPress Tips and Tricks (DFW Meetup)

WordPress Hidden Gems (July 2011)
WordPress Hidden Gems (July 2011)WordPress Hidden Gems (July 2011)
WordPress Hidden Gems (July 2011)
Stephanie Leary
 
Services web RESTful
Services web RESTfulServices web RESTful
Services web RESTful
goldoraf
 
WordPress Developers Israel Meetup #1
WordPress Developers Israel Meetup #1WordPress Developers Israel Meetup #1
WordPress Developers Israel Meetup #1
Yoav Farhi
 
Presentation to SAIT Students - Dec 2013
Presentation to SAIT Students - Dec 2013Presentation to SAIT Students - Dec 2013
Presentation to SAIT Students - Dec 2013
Think Media Inc.
 

Similar to WordPress Tips and Tricks (DFW Meetup) (20)

WordPress Hidden Gems (July 2011)
WordPress Hidden Gems (July 2011)WordPress Hidden Gems (July 2011)
WordPress Hidden Gems (July 2011)
 
Services web RESTful
Services web RESTfulServices web RESTful
Services web RESTful
 
WordPress Accessibility: WordCamp Chicago
WordPress Accessibility: WordCamp ChicagoWordPress Accessibility: WordCamp Chicago
WordPress Accessibility: WordCamp Chicago
 
WordPress Developers Israel Meetup #1
WordPress Developers Israel Meetup #1WordPress Developers Israel Meetup #1
WordPress Developers Israel Meetup #1
 
You're Doing it Wrong - WordCamp Atlanta
You're Doing it Wrong - WordCamp AtlantaYou're Doing it Wrong - WordCamp Atlanta
You're Doing it Wrong - WordCamp Atlanta
 
QA for PHP projects
QA for PHP projectsQA for PHP projects
QA for PHP projects
 
Seven deadly theming sins
Seven deadly theming sinsSeven deadly theming sins
Seven deadly theming sins
 
Beginning WordPress Plugin Development
Beginning WordPress Plugin DevelopmentBeginning WordPress Plugin Development
Beginning WordPress Plugin Development
 
Custom post-framworks
Custom post-framworksCustom post-framworks
Custom post-framworks
 
Custom post-framworks
Custom post-framworksCustom post-framworks
Custom post-framworks
 
Hardcore URL Routing for WordPress - WordCamp Atlanta 2014 (PPT)
Hardcore URL Routing for WordPress - WordCamp Atlanta 2014 (PPT)Hardcore URL Routing for WordPress - WordCamp Atlanta 2014 (PPT)
Hardcore URL Routing for WordPress - WordCamp Atlanta 2014 (PPT)
 
Intro to WordPress Plugin Development
Intro to WordPress Plugin DevelopmentIntro to WordPress Plugin Development
Intro to WordPress Plugin Development
 
WordPress
WordPressWordPress
WordPress
 
Presentation to SAIT Students - Dec 2013
Presentation to SAIT Students - Dec 2013Presentation to SAIT Students - Dec 2013
Presentation to SAIT Students - Dec 2013
 
Vagrant WordCamp Hamilton
Vagrant  WordCamp HamiltonVagrant  WordCamp Hamilton
Vagrant WordCamp Hamilton
 
Tricky Migrations
Tricky MigrationsTricky Migrations
Tricky Migrations
 
You're Doing it Wrong - WordCamp Orlando
You're Doing it Wrong - WordCamp OrlandoYou're Doing it Wrong - WordCamp Orlando
You're Doing it Wrong - WordCamp Orlando
 
Beyond the WordPress 5 minute Install
Beyond the WordPress 5 minute InstallBeyond the WordPress 5 minute Install
Beyond the WordPress 5 minute Install
 
Wordpress Meetup 2 23 10
Wordpress Meetup 2 23 10Wordpress Meetup 2 23 10
Wordpress Meetup 2 23 10
 
Twas the night before Malware...
Twas the night before Malware...Twas the night before Malware...
Twas the night before Malware...
 

More from Stephanie Leary

The WordPress University 2012
The WordPress University 2012The WordPress University 2012
The WordPress University 2012
Stephanie Leary
 
The WordPress University
The WordPress UniversityThe WordPress University
The WordPress University
Stephanie Leary
 
Social Media for Researchers
Social Media for ResearchersSocial Media for Researchers
Social Media for Researchers
Stephanie Leary
 

More from Stephanie Leary (17)

WordPress for the 99%
WordPress for the 99%WordPress for the 99%
WordPress for the 99%
 
Content First in Action
Content First in ActionContent First in Action
Content First in Action
 
Writing for the Web in Government and Education
Writing for the Web in Government and EducationWriting for the Web in Government and Education
Writing for the Web in Government and Education
 
Getting to WordPress
Getting to WordPressGetting to WordPress
Getting to WordPress
 
Content Strategy for WordPress: Case Study
Content Strategy for WordPress: Case StudyContent Strategy for WordPress: Case Study
Content Strategy for WordPress: Case Study
 
Content Strategy for WordPress
Content Strategy for WordPressContent Strategy for WordPress
Content Strategy for WordPress
 
There's a Plugin for That
There's a Plugin for ThatThere's a Plugin for That
There's a Plugin for That
 
The WordPress University 2012
The WordPress University 2012The WordPress University 2012
The WordPress University 2012
 
Keeping It Simple
Keeping It SimpleKeeping It Simple
Keeping It Simple
 
The WordPress University
The WordPress UniversityThe WordPress University
The WordPress University
 
Importing & Migrating
Importing & MigratingImporting & Migrating
Importing & Migrating
 
WordPress Hidden Gems
WordPress Hidden GemsWordPress Hidden Gems
WordPress Hidden Gems
 
What's New in WordPress 3.0 (for developers)
What's New in WordPress 3.0 (for developers)What's New in WordPress 3.0 (for developers)
What's New in WordPress 3.0 (for developers)
 
I'm with Stupid
I'm with StupidI'm with Stupid
I'm with Stupid
 
Social Media for Researchers
Social Media for ResearchersSocial Media for Researchers
Social Media for Researchers
 
WordPress as a CMS (short version)
WordPress as a CMS (short version)WordPress as a CMS (short version)
WordPress as a CMS (short version)
 
WordPress as a CMS
WordPress as a CMSWordPress as a CMS
WordPress as a CMS
 

Recently uploaded

Easier, Faster, and More Powerful – Alles Neu macht der Mai -Wir durchleuchte...
Easier, Faster, and More Powerful – Alles Neu macht der Mai -Wir durchleuchte...Easier, Faster, and More Powerful – Alles Neu macht der Mai -Wir durchleuchte...
Easier, Faster, and More Powerful – Alles Neu macht der Mai -Wir durchleuchte...
panagenda
 

Recently uploaded (20)

Integrating Telephony Systems with Salesforce: Insights and Considerations, B...
Integrating Telephony Systems with Salesforce: Insights and Considerations, B...Integrating Telephony Systems with Salesforce: Insights and Considerations, B...
Integrating Telephony Systems with Salesforce: Insights and Considerations, B...
 
Portal Kombat : extension du réseau de propagande russe
Portal Kombat : extension du réseau de propagande russePortal Kombat : extension du réseau de propagande russe
Portal Kombat : extension du réseau de propagande russe
 
Using IESVE for Room Loads Analysis - UK & Ireland
Using IESVE for Room Loads Analysis - UK & IrelandUsing IESVE for Room Loads Analysis - UK & Ireland
Using IESVE for Room Loads Analysis - UK & Ireland
 
PLAI - Acceleration Program for Generative A.I. Startups
PLAI - Acceleration Program for Generative A.I. StartupsPLAI - Acceleration Program for Generative A.I. Startups
PLAI - Acceleration Program for Generative A.I. Startups
 
Oauth 2.0 Introduction and Flows with MuleSoft
Oauth 2.0 Introduction and Flows with MuleSoftOauth 2.0 Introduction and Flows with MuleSoft
Oauth 2.0 Introduction and Flows with MuleSoft
 
ERP Contender Series: Acumatica vs. Sage Intacct
ERP Contender Series: Acumatica vs. Sage IntacctERP Contender Series: Acumatica vs. Sage Intacct
ERP Contender Series: Acumatica vs. Sage Intacct
 
TopCryptoSupers 12thReport OrionX May2024
TopCryptoSupers 12thReport OrionX May2024TopCryptoSupers 12thReport OrionX May2024
TopCryptoSupers 12thReport OrionX May2024
 
IESVE for Early Stage Design and Planning
IESVE for Early Stage Design and PlanningIESVE for Early Stage Design and Planning
IESVE for Early Stage Design and Planning
 
1111 ChatGPT Prompts PDF Free Download - Prompts for ChatGPT
1111 ChatGPT Prompts PDF Free Download - Prompts for ChatGPT1111 ChatGPT Prompts PDF Free Download - Prompts for ChatGPT
1111 ChatGPT Prompts PDF Free Download - Prompts for ChatGPT
 
Secure Zero Touch enabled Edge compute with Dell NativeEdge via FDO _ Brad at...
Secure Zero Touch enabled Edge compute with Dell NativeEdge via FDO _ Brad at...Secure Zero Touch enabled Edge compute with Dell NativeEdge via FDO _ Brad at...
Secure Zero Touch enabled Edge compute with Dell NativeEdge via FDO _ Brad at...
 
Introduction to FDO and How It works Applications _ Richard at FIDO Alliance.pdf
Introduction to FDO and How It works Applications _ Richard at FIDO Alliance.pdfIntroduction to FDO and How It works Applications _ Richard at FIDO Alliance.pdf
Introduction to FDO and How It works Applications _ Richard at FIDO Alliance.pdf
 
Linux Foundation Edge _ Overview of FDO Software Components _ Randy at Intel.pdf
Linux Foundation Edge _ Overview of FDO Software Components _ Randy at Intel.pdfLinux Foundation Edge _ Overview of FDO Software Components _ Randy at Intel.pdf
Linux Foundation Edge _ Overview of FDO Software Components _ Randy at Intel.pdf
 
Easier, Faster, and More Powerful – Alles Neu macht der Mai -Wir durchleuchte...
Easier, Faster, and More Powerful – Alles Neu macht der Mai -Wir durchleuchte...Easier, Faster, and More Powerful – Alles Neu macht der Mai -Wir durchleuchte...
Easier, Faster, and More Powerful – Alles Neu macht der Mai -Wir durchleuchte...
 
Syngulon - Selection technology May 2024.pdf
Syngulon - Selection technology May 2024.pdfSyngulon - Selection technology May 2024.pdf
Syngulon - Selection technology May 2024.pdf
 
WebAssembly is Key to Better LLM Performance
WebAssembly is Key to Better LLM PerformanceWebAssembly is Key to Better LLM Performance
WebAssembly is Key to Better LLM Performance
 
Overview of Hyperledger Foundation
Overview of Hyperledger FoundationOverview of Hyperledger Foundation
Overview of Hyperledger Foundation
 
Your enemies use GenAI too - staying ahead of fraud with Neo4j
Your enemies use GenAI too - staying ahead of fraud with Neo4jYour enemies use GenAI too - staying ahead of fraud with Neo4j
Your enemies use GenAI too - staying ahead of fraud with Neo4j
 
State of the Smart Building Startup Landscape 2024!
State of the Smart Building Startup Landscape 2024!State of the Smart Building Startup Landscape 2024!
State of the Smart Building Startup Landscape 2024!
 
WebRTC and SIP not just audio and video @ OpenSIPS 2024
WebRTC and SIP not just audio and video @ OpenSIPS 2024WebRTC and SIP not just audio and video @ OpenSIPS 2024
WebRTC and SIP not just audio and video @ OpenSIPS 2024
 
What's New in Teams Calling, Meetings and Devices April 2024
What's New in Teams Calling, Meetings and Devices April 2024What's New in Teams Calling, Meetings and Devices April 2024
What's New in Teams Calling, Meetings and Devices April 2024
 

WordPress Tips and Tricks (DFW Meetup)

  • 1. Tips and Tricks Stephanie Leary sillybean.net @sleary
  • 2. Who am I? • sillybean.net • uwc.tamu.edu • @sleary • slideshare.net/ stephanieleary
  • 4. I’ve imported from... • Blogger • Joomla • Movable Type • Drupal • Textpattern • Twitter • LiveJournal • Gallery2 • WordPress.com • Delicious • CSV files • HTML files
  • 7.
  • 8.
  • 9.
  • 11. Preparation • Back up • Prepare to undo • Import on development server • Or turn on maintenance mode • Turn off crossposting plugins • Use absolute URLs for linked files
  • 12. Plugins • DB Backup http://wordpress.org/extend/plugins/wp-db-backup/ • Mass Page Remover http://wordpress.org/extend/plugins/mass-page-remover/ • WordPress Reset http://wordpress.org/extend/plugins/wordpress-reset/ • Maintenance Mode http://wordpress.org/extend/plugins/maintenance-mode/
  • 13. WordPress export • Posts, pages, comments, authors • Uploads optional • No settings • No menus in 3.0 (fixed in 3.1) • Category slug issues (fixed in 3.1) • Skips users with no posts
  • 14. Uncommon imports • Twitter http://wordpress.org/extend/plugins/twitter-importer/ • Delicious http://wordpress.org/extend/plugins/delicious-xml-importer/ • Gallery2 http://wordpress.org/extend/plugins/gallery2-importer/ • HTML http://wordpress.org/extend/plugins/import-html-pages/
  • 15. Uncommon imports • Joomla/Mambo • 1.0 to WP 2.7x: http://tinyurl.com/joom2wp • 1.5 to WP 3.0x: http://wordpress.org/extend/plugins/ joomla-15-importer/ • Drupal • 6.x to WP 2.7x: http://tinyurl.com/dru6wp2 • 5.x to WP 2.7x: http://tinyurl.com/dru5wp2 • CSV http://wordpress.org/extend/plugins/csv-importer/
  • 16. After importing • Search & Replace http://wordpress.org/extend/plugins/search-and-replace/ • Redirection http://wordpress.org/extend/plugins/redirection/ • Add Linked Images to Gallery http://wordpress.org/extend/plugins/add-linked-images- to-gallery-v01/
  • 17. ?
  • 19.
  • 20.
  • 21.
  • 23.
  • 25.
  • 26.
  • 28.
  • 29. Good Permalinks • Include any numeric code • DON’T use: /%category%/%postname%/ • Why? http://dougal.gunters.org/?p=1431
  • 31.
  • 33.
  • 36. Feed Default URL Clean URL /?feed=rss2 /feed Basic /?feed=atom /feed/atom /?feed=comments-rss2 /comments/feed Comments /?feed=comments-atom /comments/feed/atom Category /?feed=rss2&cat=1 /category/news/feed (ID: 1, slug: news) /?feed=atom&cat=1 /category/news/feed/atom Tag /?feed=rss2&tag=book /tag/book/feed (slug: book) /?feed=atom&tag=book /tag/book/feed/atom Tags /?feed=rss2&tag=book+dvd /tag/book+dvd/feed (slugs: book, dvd) /?feed=atom&tag=book+dvd /tag/book+dvd/feed/atom
  • 37. Feed Default URL Clean URL Author /?feed=rss2&author=2 /author/joe/feed (ID: 2, nickname: Joe) /?feed=atom&author=2 /author/joe/feed/atom Post Type /?feed=rss2&post_type=page /feed/?post_type=page (page; course) /?feed=atom&post_type=course /feed/atom/?post_type=course Taxonomy /?feed=rss2&genre=mystery /genre/mystery/feed (genre: mystery) /?feed=atom&genre=mystery /genre/mystery/feed/atom Search /?feed=rss2&s=wordpress /feed/?s=wordpress Term /?feed=atom&s=wordpress /feed/atom/?s=wordpress (wordpress)
  • 39. Shortcodes in Widgets add_filter( 'widget_text', 'shortcode_unautop'); add_filter( 'widget_text', 'do_shortcode'); http://sillybean.net/?p=2719
  • 40. List Child Pages function append_child_pages( $content ) { $children = ''; if ( is_page() && (empty( $content )) ) { global $post; $children = '<ul class="childpages">' .wp_list_pages('echo=0&title_li=&child_of='.$post->ID) .'</ul>'; } return $content.$children; } add_filter( 'the_content' , 'append_child_pages' ); http://sillybean.net/?p=5246
  • 41. User Contact Info function change_contactmethod( $contactmethods ) { // Add some fields $contactmethods['twitter'] = 'Twitter Name (no @)'; $contactmethods['phone'] = 'Phone Number'; $contactmethods['title'] = 'Title'; // Remove AIM, Yahoo IM, Google Talk/Jabber unset($contactmethods['aim']); unset($contactmethods['yim']); unset($contactmethods['jabber']); // make it go! return $contactmethods; } add_filter('user_contactmethods','change_contactmethod',10,1); http://sillybean.net/?p=2714
  • 42.
  • 45. Evilness • base64() • eval() • links you can’t remove • etc. • get things from wordpress.org!
  • 47. ?
  • 48. New in 3.1 • admin bar • internal links • network admin • sortable columns • better theme search
  • 49. New in 3.1 • post formats • custom post type archives • hidden meta boxes • advanced taxonomy queries http://otto42.com/81
  • 50. For Developers • user_can • get_users • has_term • single_term_title
  • 51. For Developers • get_ancestors • set_post_thumbnail • esc_textarea • submit_button
  • 52. Thank you. Stephanie Leary sillybean.net @sleary

Editor's Notes

  1. \n
  2. \n
  3. \n
  4. \n
  5. \n
  6. \n
  7. \n
  8. \n
  9. \n
  10. \n
  11. \n
  12. \n
  13. \n
  14. \n
  15. \n
  16. \n
  17. \n
  18. \n
  19. If you&amp;#x2019;ve been using WordPress for a while, you might not have noticed the screen options that were added a few versions ago. You can change the number of posts or pages shown per page in the Edit screens, and you can hide some of the columns if you like.\n
  20. On the menu screen, the screen options allows you to show things that are normally hidden, like custom post types and taxonomies.\n
  21. On the Dashboard, the screen options let you choose the number of columns your widgets are displayed in, and you can turn off individual widgets.\n
  22. \n
  23. The bulk edit feature is also easy to overlook. Check off several posts in the Edit screen, then choose &amp;#x201C;Edit&amp;#x201D; from the Bulk Actions dropdown. You&amp;#x2019;ll be able to edit all the attributes of the posts: categories, tags, comment/trackback settings, publication status, and sticky status. You won&amp;#x2019;t be able to edit things that are naturally unique to each post, like the title and date.\n
  24. \n
  25. Did you know there&amp;#x2019;s a members-only content feature built right into WordPress? It&amp;#x2019;s a little buggy, which is probably why it&amp;#x2019;s not more well-known. If you change a post or page to privately published, only logged-in users who can see private posts and pages will be able to see it.\n
  26. This is Justin Tadlock&amp;#x2019;s Members plugin. Among other things, you can choose which roles can edit or read private posts and pages -- or you can create a whole new role for that purpose.\n
  27. the_shortlink() is a new function in 3.0. It lets you print a shorter permalink for your post in your template file for readers to use. If you have the WordPress Stats plugin installed, you&amp;#x2019;ll see wp.me links (although you can turn that off in the plugin&amp;#x2019;s settings). If not, you&amp;#x2019;ll see the default permalink structure (example.com/?p=123), which always works no matter what permalink structure you&amp;#x2019;ve chosen.\n
  28. \n
  29. \n
  30. \n
  31. The Incoming Links and the two WordPress news Dashboard widgets are just RSS readers. Click &amp;#x201C;configure&amp;#x201D; in the upper right corner of each widget, and you&amp;#x2019;ll be able to change the RSS feed that&amp;#x2019;s shown.\n
  32. \n
  33. Type options.php into your address bar (example.com/wp-admin/options.php) and you&amp;#x2019;ll get this alphabetized listing of all the options stored in your wp_options database table. Some won&amp;#x2019;t be editable -- if they&amp;#x2019;re stored as arrays, you&amp;#x2019;ll just see &amp;#x201C;Serialized data&amp;#x201D; -- but the rest can be changed here. Be careful with this!\n
  34. You can edit serialized options by changing the database fields directly. Copy the serialized array (shown here in the row with the ID 10390) and paste it into the Online PHP Unserializer at blog.tanist.co.uk. This tool will convert the serialized array to a more familiar array printout. You can then make changes and re-serialize the array to store it back in the database.\n
  35. \n
  36. WordPress automatically generates feeds for just about everything. Most of the time, the feeds for posts and comments are the only ones you see. For anything else, just add /feed to the URL and see what happens! You can get feeds for categories, tags, combinations of tags...\n
  37. ... individual authors&amp;#x2019; posts, post types (including pages!), taxonomy terms, and even search terms.\n
  38. This is where you&amp;#x2019;ll have to get your hands dirty with code. Filters allow you to change the way content is handled or displayed in WordPress sites.\n
  39. For example, you can easily allow users to use shortcodes in text widgets by adding these two lines to your functions.php file.\n
  40. It&amp;#x2019;s also easy to automatically list child pages on a parent page with empty content using this filter. (See my website for alternatives using shortcodes and template tags.)\n
  41. This filter alters the contact fields that are shown in user profiles. Here, I&amp;#x2019;ve removed the three IM fields and added Twitter, a phone number, and a job title.\n
  42. Here&amp;#x2019;s how the new contact fields appear.\n
  43. With the new fields in place, it&amp;#x2019;s easy to build a robust user directory. (See this URL for details on limiting the directory to certain roles.)\n
  44. This is where you&amp;#x2019;ll have to get your hands dirty with code. Filters allow you to change the way content is handled or displayed in WordPress sites.\n
  45. \n
  46. Use the Exploit Scanner plugin after you&amp;#x2019;ve installed, but before you&amp;#x2019;ve enabled, a new theme or plugin. This was written by several of the core developers and it looks for a lot of the problems they see in things rejected from the official repositories.\n
  47. Any questions before I move on to 3.1?\n
  48. \n
  49. \n
  50. \n
  51. \n
  52. \n