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
Ā 
Seven deadly theming sins
Seven deadly theming sinsSeven deadly theming sins
Seven deadly theming sins
George Stephanis
Ā 
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
Ā 
Importing & Migrating
Importing & MigratingImporting & Migrating
Importing & Migrating
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

IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
Enterprise Knowledge
Ā 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
giselly40
Ā 

Recently uploaded (20)

The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
Ā 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
Ā 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024
Ā 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
Ā 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Ā 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
Ā 
šŸ¬ The future of MySQL is Postgres šŸ˜
šŸ¬  The future of MySQL is Postgres   šŸ˜šŸ¬  The future of MySQL is Postgres   šŸ˜
šŸ¬ The future of MySQL is Postgres šŸ˜
Ā 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
Ā 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
Ā 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Ā 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
Ā 
Scaling API-first ā€“ The story of a global engineering organization
Scaling API-first ā€“ The story of a global engineering organizationScaling API-first ā€“ The story of a global engineering organization
Scaling API-first ā€“ The story of a global engineering organization
Ā 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
Ā 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
Ā 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
Ā 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
Ā 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Ā 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
Ā 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
Ā 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
Ā 

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