SlideShare a Scribd company logo
Hidden Gems
Stephanie Leary   sillybean.net   @sleary
Hiding in Plain Sight
Screen Options
WordPress Hidden Gems (July 2011)
WordPress Hidden Gems (July 2011)
WordPress Hidden Gems (July 2011)
Bulk Edit
WordPress Hidden Gems (July 2011)
Private Status
WordPress Hidden Gems (July 2011)
WordPress Hidden Gems (July 2011)
WordPress Hidden Gems (July 2011)
Short Links
 the_shortlink();
WordPress Hidden Gems (July 2011)
Out of Sight,
Out of Mind
Dashboard Feeds
WordPress Hidden Gems (July 2011)
Options.php
WordPress Hidden Gems (July 2011)
http://blog.tanist.co.uk/files/unserialize/
http://sillybean.net/code/wordpress/edit-all-options/
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=course        /feed/?post_type=course
(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)
Buried Treasure
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
WordPress Hidden Gems (July 2011)
http://sillybean.net/?p=2715
All Filters
http://codex.wordpress.org/Plugin_API/
           Filter_Reference
Pirate Loot
JavaScript Libraries
   • jQuery
   • Scriptaculous
   • Prototype
   • SWFUpload
   • Thickbox
   • JSON for JS
http://codex.wordpress.org/Function_Reference/
              wp_enqueue_script
WordPress Hidden Gems (July 2011)
Thank you.
     Stephanie Leary
     sillybean.net
     @sleary

More Related Content

PPTX
Facebook's Apps II part
PDF
The Why & How Of Social Media In English
PDF
Les anophèles transgéniques : Moyen de lutte ou miroir aux alouettes
PDF
New BYOB Law for Sayreville (The Suburban)
PDF
South Amboy Lays Out Plans for 2009 (The Suburban)
PDF
Ask the Pros: How to Manage Social Media at Your Nonprofit
PDF
Explorer X - Alpha Teaser
PDF
Educational complementary currency
Facebook's Apps II part
The Why & How Of Social Media In English
Les anophèles transgéniques : Moyen de lutte ou miroir aux alouettes
New BYOB Law for Sayreville (The Suburban)
South Amboy Lays Out Plans for 2009 (The Suburban)
Ask the Pros: How to Manage Social Media at Your Nonprofit
Explorer X - Alpha Teaser
Educational complementary currency

What's hot (20)

PDF
Achmea Vitale Presentatie
PDF
Magazine layout 3
PDF
"Innovación radical: open access, auto-aprendizaje y sobreabundancia"
KEY
Content construction with zoo
PDF
Facebook für PHP Entwickler - phpugffm
PDF
ESWC 2009 Lightning Talks
PDF
URL Resources
KEY
gumiStudy#11 newsing(fb)
PDF
Clementina Velasco — Zines
PDF
Stb ckm
PDF
Pam pdf
PDF
João Rodrigues - be IN Bragança
PDF
Grizzly manpaper
PDF
Listing 510 East 80th
PDF
Microformats, Building Blocks of the Semantic Web
PDF
PDF
Asool rijal2
PDF
Mario chaves
PDF
OIF040 HR & Social Media
Achmea Vitale Presentatie
Magazine layout 3
"Innovación radical: open access, auto-aprendizaje y sobreabundancia"
Content construction with zoo
Facebook für PHP Entwickler - phpugffm
ESWC 2009 Lightning Talks
URL Resources
gumiStudy#11 newsing(fb)
Clementina Velasco — Zines
Stb ckm
Pam pdf
João Rodrigues - be IN Bragança
Grizzly manpaper
Listing 510 East 80th
Microformats, Building Blocks of the Semantic Web
Asool rijal2
Mario chaves
OIF040 HR & Social Media
Ad

Similar to WordPress Hidden Gems (July 2011) (20)

KEY
WordPress Tips and Tricks (DFW Meetup)
PDF
Migrare da symfony 1 a Symfony2
PDF
PhpBB meets Symfony2
PPT
Facebook Development with Zend Framework
PDF
QA for PHP projects
ODP
Ruby on discuz
PPT
Django
PDF
Symfony2 - OSIDays 2010
PPT
Advanced and Hidden WordPress APIs
PDF
fb-researchの舞台裏No.2~技術編~(HatchUp主催 渋谷Facebookアプリ勉強会)
PPTX
Let's write secure Drupal code! DUG Belgium - 08/08/2019
PPT
Django O/R Mapper
PDF
Symfony2 - WebExpo 2010
PDF
Symfony2 - WebExpo 2010
PPT
August 10th, 2009 Pete De Mulle Twitter
PPT
Spyware/Malware FVCP
PPT
FVCP - Facebook , Twitter and Meetup API / Widgets
PDF
Curso Symfony - Clase 4
PDF
Add loop shortcode
PDF
Great Developers Steal
WordPress Tips and Tricks (DFW Meetup)
Migrare da symfony 1 a Symfony2
PhpBB meets Symfony2
Facebook Development with Zend Framework
QA for PHP projects
Ruby on discuz
Django
Symfony2 - OSIDays 2010
Advanced and Hidden WordPress APIs
fb-researchの舞台裏No.2~技術編~(HatchUp主催 渋谷Facebookアプリ勉強会)
Let's write secure Drupal code! DUG Belgium - 08/08/2019
Django O/R Mapper
Symfony2 - WebExpo 2010
Symfony2 - WebExpo 2010
August 10th, 2009 Pete De Mulle Twitter
Spyware/Malware FVCP
FVCP - Facebook , Twitter and Meetup API / Widgets
Curso Symfony - Clase 4
Add loop shortcode
Great Developers Steal
Ad

More from Stephanie Leary (18)

PPTX
WordPress for the 99%
PPTX
Content First in Action
PPTX
Writing for the Web in Government and Education
PPTX
Getting to WordPress
PPT
Content Strategy for WordPress: Case Study
PPT
Content Strategy for WordPress
PDF
There's a Plugin for That
PPTX
The WordPress University 2012
KEY
Keeping It Simple
PPTX
The WordPress University
KEY
Tricky Migrations
KEY
Importing & Migrating
PDF
WordPress Hidden Gems
KEY
What's New in WordPress 3.0 (for developers)
PPT
I'm with Stupid
KEY
Social Media for Researchers
KEY
WordPress as a CMS (short version)
ZIP
WordPress as a CMS
WordPress for the 99%
Content First in Action
Writing for the Web in Government and Education
Getting to WordPress
Content Strategy for WordPress: Case Study
Content Strategy for WordPress
There's a Plugin for That
The WordPress University 2012
Keeping It Simple
The WordPress University
Tricky Migrations
Importing & Migrating
WordPress Hidden Gems
What's New in WordPress 3.0 (for developers)
I'm with Stupid
Social Media for Researchers
WordPress as a CMS (short version)
WordPress as a CMS

Recently uploaded (20)

PDF
Encapsulation_ Review paper, used for researhc scholars
PPT
Teaching material agriculture food technology
PDF
Video forgery: An extensive analysis of inter-and intra-frame manipulation al...
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PDF
Machine learning based COVID-19 study performance prediction
PDF
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PDF
cuic standard and advanced reporting.pdf
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PDF
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
PDF
Unlocking AI with Model Context Protocol (MCP)
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PPTX
A Presentation on Artificial Intelligence
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PPTX
Tartificialntelligence_presentation.pptx
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PPTX
Programs and apps: productivity, graphics, security and other tools
PDF
Electronic commerce courselecture one. Pdf
Encapsulation_ Review paper, used for researhc scholars
Teaching material agriculture food technology
Video forgery: An extensive analysis of inter-and intra-frame manipulation al...
Mobile App Security Testing_ A Comprehensive Guide.pdf
Machine learning based COVID-19 study performance prediction
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
Diabetes mellitus diagnosis method based random forest with bat algorithm
cuic standard and advanced reporting.pdf
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
Unlocking AI with Model Context Protocol (MCP)
Building Integrated photovoltaic BIPV_UPV.pdf
A Presentation on Artificial Intelligence
Agricultural_Statistics_at_a_Glance_2022_0.pdf
Tartificialntelligence_presentation.pptx
Per capita expenditure prediction using model stacking based on satellite ima...
Programs and apps: productivity, graphics, security and other tools
Electronic commerce courselecture one. Pdf

WordPress Hidden Gems (July 2011)

  • 1. Hidden Gems Stephanie Leary sillybean.net @sleary
  • 15. Out of Sight, Out of Mind
  • 23. 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
  • 24. 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=course /feed/?post_type=course (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)
  • 27. Shortcodes in Widgets add_filter( 'widget_text', 'shortcode_unautop'); add_filter( 'widget_text', 'do_shortcode'); http://sillybean.net/?p=2719
  • 28. 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
  • 29. 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
  • 34. JavaScript Libraries • jQuery • Scriptaculous • Prototype • SWFUpload • Thickbox • JSON for JS http://codex.wordpress.org/Function_Reference/ wp_enqueue_script
  • 36. Thank you. Stephanie Leary sillybean.net @sleary

Editor's Notes

  • #2: \n
  • #3: \n
  • #4: \n
  • #5: 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
  • #6: On the menu screen, the screen options allows you to show things that are normally hidden, like custom post types and taxonomies.\n
  • #7: 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
  • #8: \n
  • #9: 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
  • #10: \n
  • #11: 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
  • #12: 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
  • #13: My own Private Suite plugin also lets you choose roles for reading private content.\n
  • #14: 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
  • #15: \n
  • #16: \n
  • #17: \n
  • #18: 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
  • #19: \n
  • #20: 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
  • #21: 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
  • #22: \n
  • #23: \n
  • #24: 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
  • #25: ... individual authors&amp;#x2019; posts, post types (including pages!), taxonomy terms, and even search terms.\n
  • #26: \n
  • #27: 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
  • #28: For example, you can easily allow users to use shortcodes in text widgets by adding these two lines to your functions.php file.\n
  • #29: 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
  • #30: 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
  • #31: Here&amp;#x2019;s how the new contact fields appear.\n
  • #32: 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
  • #33: \n
  • #34: \n
  • #35: \n
  • #36: \n
  • #37: \n