Sky is green, up is down, and we have always been at war with Eurasia.
Posts and pages share the same database table; they have all the same fields.
So what are all the things you can store in the WordPress database?
* - unless you are a traveling circus or a Kogi taco truck
... about which, more later.
About ten new plugins are added every day.
This is Register Plus.
If you just want to change one or two capabilities, you can dig into the Codex list of capabilities and make the changes in your functions.php file -- but you’ll have to remember to copy these lines if you change themes.
Among other things, you can choose which roles can edit or read private posts and pages -- or you can create a whole new role for that purpose.
1 Favorite
Richard Kong, Adult Programming and Technology Coordinator at Skokie Public Library, favorited this 1 month ago
Less blog, more CMS
• magazine-style home page
• great URL structure
• no “category” or “archives”
• contextual navigation
• breadcrumbs
• subpage listings
Magazine layouts
• multiple content areas
• category sections
• list of subpages
• widgets
Modifying the query
• limit • parent
• offset • categories & tags
• sort order • include
• exclude
• type
• author
• status
Resetting the query
$q = new WP_Query();
$q->query('showposts=5');
while ($q->have_posts()) :
$q->the_post();
the_content();
endwhile;
Resetting the query
wp_reset_query();
Outside the loop
• header
• footer
• sidebar
Sidebars
• one included by default
• get_sidebar();
• can use more than one with PHP
file include syntax
• <?php include_once
(TEMPLATEPATH . "/nav.php"); ?>
Theme/plugin hybrid
can be defined in functions.php
or installed as part of a plugin
Built-in widgets
• Archives • Meta
• Categories • log in/out
• feed
• Calendar
• Recent posts
• Links
• Tag cloud
• RSS*
• Text
• Pages
Creating your own
6,735*
official plugins
* at last count
Plugins can...
• add widgets • provide custom
fields
• create template
tags • alter write
screens
• modify loops
• add JS libraries
• create
shortcodes • ...
• alter user roles
Useful plugins
Writing your own
We want...
• pages
• a blog
• subscribe to comments
• a podcast
• a contact form w/spam guard
• a private area
• users to be redirected on login
Demo
• activate plugins
• set options
• create private user
Users
• username • IM info
• name • Gravatar
• email • bio
• URL
2.9 Features
• image editor • easy changes to
contact profile
• trash fields
• posts
• included handbook
• pages
• printable
• comments
• category-slug.php
• new excerpt filters
http://codex.wordpress.org/Version_2.9
What’s different in MU?
• Each user gets a blog
• Each blog gets a set of db tables
• Users can’t upload themes or
plugins
• Site-wide plugins installed for all*
• Site Admin screen (and role)
0 comments
Post a comment