Skip to Main Content
Web Designer’s Guide to WordPress: Plan, Theme, Build, Launch
book

Web Designer’s Guide to WordPress: Plan, Theme, Build, Launch

by Jesse Friedman
August 2012
Beginner to intermediate content levelBeginner to intermediate
288 pages
5h 56m
English
New Riders
Content preview from Web Designer’s Guide to WordPress: Plan, Theme, Build, Launch

15. Custom Fields

Before the existence of custom post types, custom fields were the tool of choice to enhance out-of-the-box WordPress functionality. I once built a 23,000-page directory using WordPress and custom fields. They give you precise control over metadata for specific posts and pages.

Now that we have custom post types and greater control over data tied to posts and pages, custom fields are used primarily for specific functions, such as toggling elements on posts or pages, showing or hiding content, and so on. In our theme we’ll be using custom fields to set the URL of our home page slider.

What you’re about to learn

• How to set custom fields in a post

• How to display all custom fields on a post

• How to use custom field data for ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Smashing WordPress: Beyond the Blog, 4th Edition

Smashing WordPress: Beyond the Blog, 4th Edition

Thord Hedengren

Publisher Resources

ISBN: 9780133016758Purchase book