News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

NETTUTS.com:
Context Includes
October 15, 2008 @ 10:23:51

The NETTUTS blog has another WordPress-related post today that looks at "context includes" - changing the look and feel of the postings based on the content type they're tagged with.

The great thing about WordPress is that it doesn't limit how content is displayed, but provides a 'framework' of ways to do so. Even better, it's possible to change the display according to the content. When writing this tutorial it was hard to explain what's going on... But the best way is this: the post will be displayed within the loop according to its content - or contextual differences. Either way, it's including specific files that match up to the category of the post.

There's plenty of code to go around introducing you to the parts of the typical WodPress install you'll be working with and some CSS to help you style the resulting changes. You can download the source and check out a live demo of the end result.

0 comments voice your opinion now!
tutorial wordpress context tag type layout css demo


blog comments powered by Disqus

Similar Posts

WebReferece.com: Building a Weblog: Part 2

Zend Developer Zone: Dynamically Generating PDF Files with PHP and Haru

Zend Developer Zone: Creating Scalable Vector Graphs with PHP

Nikita Popov: Cooperative multitasking using coroutines (in PHP!)

NetTuts.com: How to Write Code That Embraces Change


Community Events

Don't see your event here?
Let us know!


php7 community podcast symfony2 api laravel introduction opinion framework version release example install interview conference extension series voicesoftheelephpant library performance

All content copyright, 2015 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework