Loading…

Flash Player 9 (or above) is needed to view presentations.
We have detected that you do not have it on your computer. To install it, go here.

Like this presentation? Why not share!

Like this? Share it with your network

Share

WordPress Hidden Gems

on

  • 9,900 views

For OpenCamp Dallas 2010

For OpenCamp Dallas 2010

Statistics

Views

Total Views
9,900
Views on SlideShare
9,651
Embed Views
249

Actions

Likes
6
Downloads
64
Comments
2

7 Embeds 249

http://www.ilovecolors.com.ar 217
http://latenightstop.com 24
http://dfwwp.org 3
http://static.slidesharecdn.com 2
http://translate.googleusercontent.com 1
http://feeds.feedburner.com 1
https://www.linkedin.com 1
More...

Accessibility

Categories

Upload Details

Uploaded via as Apple Keynote

Usage Rights

CC Attribution License

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment
  • <br />
  • <br />
  • <br />
  • If you&#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. <br />
  • On the menu screen, the screen options allows you to show things that are normally hidden, like custom post types and taxonomies. <br />
  • 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. <br />
  • <br />
  • The bulk edit feature is also easy to overlook. Check off several posts in the Edit screen, then choose &#x201C;Edit&#x201D; from the Bulk Actions dropdown. You&#x2019;ll be able to edit all the attributes of the posts: categories, tags, comment/trackback settings, publication status, and sticky status. You won&#x2019;t be able to edit things that are naturally unique to each post, like the title and date. <br />
  • <br />
  • Did you know there&#x2019;s a members-only content feature built right into WordPress? It&#x2019;s a little buggy, which is probably why it&#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. <br />
  • This is Justin Tadlock&#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. <br />
  • My own Private Suite plugin also lets you choose roles for reading private content. <br />
  • 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&#x2019;ll see wp.me links (although you can turn that off in the plugin&#x2019;s settings). If not, you&#x2019;ll see the default permalink structure (example.com/?p=123), which always works no matter what permalink structure you&#x2019;ve chosen. <br />
  • <br />
  • <br />
  • <br />
  • The Incoming Links and the two WordPress news Dashboard widgets are just RSS readers. Click &#x201C;configure&#x201D; in the upper right corner of each widget, and you&#x2019;ll be able to change the RSS feed that&#x2019;s shown. <br />
  • <br />
  • Type options.php into your address bar (example.com/wp-admin/options.php) and you&#x2019;ll get this alphabetized listing of all the options stored in your wp_options database table. Some won&#x2019;t be editable -- if they&#x2019;re stored as arrays, you&#x2019;ll just see &#x201C;Serialized data&#x201D; -- but the rest can be changed here. Be careful with this! <br />
  • 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. <br />
  • <br />
  • 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... <br />
  • ... individual authors&#x2019; posts, post types (including pages!), taxonomy terms, and even search terms. <br />
  • <br />
  • This is where you&#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. <br />
  • For example, you can easily allow users to use shortcodes in text widgets by adding these two lines to your functions.php file. <br />
  • It&#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.) <br />
  • This filter alters the contact fields that are shown in user profiles. Here, I&#x2019;ve removed the three IM fields and added Twitter, a phone number, and a job title. <br />
  • Here&#x2019;s how the new contact fields appear. <br />
  • With the new fields in place, it&#x2019;s easy to build a robust user directory. (See this URL for details on limiting the directory to certain roles.) <br />
  • <br />
  • <br />
  • <br />
  • <br />

WordPress Hidden Gems Presentation Transcript

  • 1. Hidden Gems Stephanie Leary sillybean.net @sleary
  • 2. Hiding in Plain Sight
  • 3. Screen Options
  • 4. Bulk Edit
  • 5. Private Status
  • 6. Short Links the_shortlink();
  • 7. Out of Sight, Out of Mind
  • 8. Dashboard Feeds
  • 9. Options.php
  • 10. http://blog.tanist.co.uk/files/unserialize/
  • 11. Hidden Feeds
  • 12. 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
  • 13. 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)
  • 14. Buried Treasure
  • 15. Filters
  • 16. Shortcodes in Widgets add_filter( 'widget_text', 'shortcode_unautop'); add_filter( 'widget_text', 'do_shortcode'); http://sillybean.net/?p=2719
  • 17. 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
  • 18. 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
  • 19. http://sillybean.net/?p=2715
  • 20. Pirate Loot
  • 21. Plugins Outside Extend • Mambo/Joomla importer • Twitter importer • Gravity Forms ($$) • List Child Attachments • the_excerpt Reloaded • Hooks & Filters Flow
  • 22. Thank you. Stephanie Leary sillybean.net @sleary Find me in the Genius Bar tomorrow, 10-noon!