We are almost half-way through the term, and I would like to see the progress that you have made. To that end, I would like to do a website pinup next week. Everyone will put their site up on the screen and we'll have a mini critique. This week, more on plugins.
Plugins to Know and Love
The loop is the key to a WordPress theme: it is a piece of code that pulls your content from the database into your site. Beck pg 192
When a user clicks a link in a dynamic site, they get a page generated to display content that meets certain conditions: a page named foo.php, all the posts tagged X, or all the posts in category Y.
The code in the loop gets each instance of database content that meets the required conditions, and displays it according to the PHP and HTML instructions given. It then loops back to find the next instance, and follows the given instructions again.
The PHP and HTML code inside the loop determines how the content and metadata of each post will be displayed on the page.
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
<?php the_content(); ?>
<?php endwhile; ?>
<?php else : ?>
<><?php _e('Sorry, no posts.'); ?>
<?php endif; ?>
We will look at your site configurations, then examine Templates & Tags.
The Template Tag Basics:
List of Template Tags:
The Template Hierarchy:
Super Simple Template Code
<?php get_header(); ?>
<p>Sorry, the page you are looking for doesn't exist.</p>
</div><!-- #content -->
<?php get_footer(); ?>
For next week,
Enclose the logo/header in a null link tag so we can link it back to the main page from each interior page.
Include clear and consistent page identification. A good way to do this is to use a headline, for example an <h1> or <h2> that says “About Us” on your About page.
Include examples of subheads in your page text. Your template should show me how h2 and h3 subheads will be styled in your main content area, and in your sidebar(s).
Your template must contain enough dummy text to show how a long, scrolling, text-heavy page will be handled. For example, if you have a background image, will it end, repeat, or fade out when the text is longer than the image?
Review the final project requirements to be sure your design will accommodate all the elements your final site needs.
Test your template in Firefox and IE7, 8, and 9. If you don’t have access to these versions of IE, use the IE NetRenderer.
Validate your HTML and your CSS. Place both validation badges on each page, andtest them. Please use the CSS3 validation link provided in the document template.
Using the Links panel in your WordPress site’s Dashboard, add a link that points to your template file. Be sure your Links widget appears in your site’s sidebar, so I can find the link.
I think the power of WordPress comes from the ability to use the plugins. We will look at a couple of tutorials in that regard. I'd like for us to think about ways to expand the capabilities of your site. It seems to me that simply building a site and porting it to WordPress is rather elementary for students of your skill sets and talents.
Here are some ideas--
Use WordPress as your invoicing system, Turn your WordPress site into a customized job board, Use WordPress for Customer Relationship Management (CRM), Manage your email newsletter campaign in WordPress, Create a wiki engine with WordPress. http://smartsite4u.com/blog/5-innovative-uses-of-wordpress-for-business-owners-and-entrepreneurs/
Innovative Uses of WordPress Post Types and Taxonomies http://wp.tutsplus.com/tutorials/theme-development/innovative-uses-of-wordpress-post-types-and-taxonomies/
25 Unique uses of WordPress as CMS http://www.noupe.com/wordpress/25-unique-uses-of-wordpress-as-cms.html
10 Nonblog WordPress-Powered Sites That Spur Creativity http://designrfix.com/inspiration/10-nonblog-wordpresspowered-sites-spur-creativity
Here are some other links that might peak your imagination--
For next week,
Configure your site
Introduction (Course objectives, requirements), Contact info, check on e-book
First steps--Introduction to WordPress
Lecture: Course Overview/What is WordPress?
Reading: Beck Introduction, pgs 1–28, & Chapter 3Assignment: Choose Your Project and Get Web Hosting
These will be the benchmarks for your final project.