Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

WordPress Tips and Tricks (DFW Meetup)

8,456 views

Published on

Published in: Technology
  • Be the first to comment

WordPress Tips and Tricks (DFW Meetup)

  1. Tips and TricksStephanie Leary sillybean.net @sleary
  2. Who am I?• sillybean.net• uwc.tamu.edu• @sleary• slideshare.net/ stephanieleary
  3. Importing
  4. I’ve imported from...• Blogger • Joomla• Movable Type • Drupal• Textpattern • Twitter• LiveJournal • Gallery2• WordPress.com • Delicious• CSV files • HTML files
  5. Uncommon Importshttp://codex.wordpress.org/Importing_Content
  6. HTML Import
  7. Secrets ofHappy Importing
  8. 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
  9. 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/
  10. 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
  11. 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/
  12. 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/
  13. 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/
  14. ?
  15. Screen Options
  16. Bulk Edit
  17. Private Status
  18. Short Links the_shortlink();
  19. Good Permalinks• Include any numeric code• DON’T use: /%category%/%postname%/• Why? http://dougal.gunters.org/?p=1431
  20. Dashboard Feeds
  21. Options.php
  22. http://blog.tanist.co.uk/files/unserialize/
  23. Hidden Feeds
  24. 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
  25. Feed Default URL Clean URL Author /?feed=rss2&author=2 /author/joe/feed (ID: 2,nickname: Joe) /?feed=atom&author=2 /author/joe/feed/atomPost Type /?feed=rss2&post_type=page /feed/?post_type=page(page; course) /?feed=atom&post_type=course /feed/atom/?post_type=courseTaxonomy /?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)
  26. Filters
  27. Shortcodes in Widgets add_filter( widget_text, shortcode_unautop); add_filter( widget_text, do_shortcode); http://sillybean.net/?p=2719
  28. List Child Pagesfunction 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
  29. User Contact Infofunction 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
  30. http://sillybean.net/?p=2715
  31. EvaluatingThemes & Plugins
  32. Evilness• base64()• eval()• links you can’t remove• etc.• get things from wordpress.org!
  33. Exploit Scannerhttp://wordpress.org/extend/plugins/exploit-scanner/
  34. ?
  35. New in 3.1• admin bar• internal links• network admin• sortable columns• better theme search
  36. New in 3.1• post formats• custom post type archives• hidden meta boxes• advanced taxonomy queries http://otto42.com/81
  37. For Developers• user_can• get_users• has_term• single_term_title
  38. For Developers• get_ancestors• set_post_thumbnail• esc_textarea• submit_button
  39. Thank you. Stephanie Leary sillybean.net @sleary

×