How it works Pxs
The is_page function utilizes the global wp_query variable and its data to verify that a page is being viewed and that the page being viewed matches the conditions specified by the function's parameter. By default, the is_page function only checks to see if a page is currently being displayed. However, by passing it a parameter, you can check to see if a specific page is being viewed. The parameter could be the page name, page slug, or page ID, whichever is most convenient. I recommend using...
Creating Navigation
Listing all of the pages that exist on a blog Listing all of the categories defined for a blog Listing all of the tags in use on a blog Highlighting the current page in the navigation Adding a search function to a theme Getting the category page link from a category name Displaying page links only if the destination page exists Creating a category drop-down menu Creating drop-downs using child pages One of the most important aspects of any website is navigation. Making sure that a visitor can...
1
Finding documentation on WordPress.org Downloading themes from the WordPress theme repository Downloading themes from third-party websites Installing and activating a theme Getting the absolute directory path of the active theme Creating a theme from scratch Creating a theme by using a theme framework Adding expected WordPress hooks Including PHP files from your theme If you're going to be creating or modifying a WordPress theme, it pays to start with the basics. That's what this chapter is...
WordPress 28 Themes Cookbook
Over 100 simple but incredibly effective recipes for creating powerful, custom WordPress themes community experience distilled PUBLISHING All rights reserved. No part of this book may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, without the prior written permission of the publisher, except in the case of brief quotations embedded in critical articles or reviews. Every effort has been made in the preparation of this book to ensure the accuracy of the...

