• Skip to primary navigation
  • Skip to main content
  • Skip to footer
  • Books
    • Content Strategy for WordPress (2015)
    • WordPress for Web Developers (2013)
    • Beginning WordPress 3 (2010)
  • Blog
    • Content Modeling for WordPress
    • WordPress Hidden Gems
    • Web Design
  • Work
    • MLIS Class Projects (2019-2022)
    • Portfolio (2002-2019)
    • Services
    • WordPress Plugins
    • WordPress Themes
    • Presentations and Interviews
    • on GitHub →

Stephanie Leary

Writer, WordPress consultant, recent MLIS grad

  • About
    • Press Kit
    • Presentations and Interviews
  • Contact Me

Posts and Pages

Listing child pages with a shortcode

June 8, 2010 Stephanie Leary 7 Comments

If you don't want to list child pages on all your empty pages using a [link id="2865"]page template[/link] or a [link id="5246"]filter[/link], you can create a simple shortcode: Then place [[children]] in your page content where you want the list to appear. … [Read more...] about Listing child pages with a shortcode

WordPress Posts and Pages, shortcodes

Listing children on empty pages as a filter

June 3, 2010 Stephanie Leary Leave a Comment

Yesterday, I showed you how to automatically list child pages if a page's content is empty. That code would go in your theme's page.php file. What if you wanted to use it in any theme? The best solution is to turn it into a little plugin: Paste the code into a file in your … [Read more...] about Listing children on empty pages as a filter

WordPress Navigation, Posts and Pages

Automatically list children on empty pages

June 2, 2010 Stephanie Leary 5 Comments

Here's a little snippet I use in my theme's page templates. It figures out whether a page's content is empty, and if it is, a list of all its child pages is printed where the content would usually go. To use this, find the_content() in your page.php file and replace it with that … [Read more...] about Automatically list children on empty pages

WordPress Posts and Pages

Take control of your excerpts

February 9, 2010 Stephanie Leary 4 Comments

Here are three short functions you can add to your theme's functions.php file to change the way excerpts work on your site. When you use the_excerpt() in a theme file, WordPress will first use the contents of the Excerpt field from your Post→Edit screen. If it's empty, … [Read more...] about Take control of your excerpts

WordPress excerpts, Metadata, Posts and Pages

Listing child pages

August 9, 2009 Stephanie Leary 2 Comments

The Codex offers a way to list the children of the current page by adding this to your theme: … [Read more...] about Listing child pages

WordPress Navigation, pages, Posts and Pages, template tags

Posts vs. Pages

August 3, 2009 Stephanie Leary Leave a Comment

Should you use posts or pages for your content? On the surface, they are much the same in WordPress. They share a similar editing screen1. Both can accept comments and trackbacks. How do you decide which is best for you? If your site contains a blog of any variety — a … [Read more...] about Posts vs. Pages

WordPress excerpts, Posts and Pages, strategy, subscribers, taxonomy

Footer

My Books

This is an excerpt from Content Strategy for WordPress.My latest books are Content Strategy for WordPress (2015) and WordPress for Web Developers (2013). Sign up to be notified when I have a new book for you.

I’m a front end developer at Equinox OLI, working on open source library software. I was previously a freelance WordPress developer in higher education. You can get in touch here or on LinkedIn.

Copyright © 2023 Stephanie Leary · Contact