200 likes | 276 Views
Beginning Wordpress. It’s more than a blog. It’s a CMS!. PHP & MySQL – What Makes it Tick. Famous 5-Minute Install. wp-config.php. Multiple Users and Roles. Super Admin Administrator Editor Author Contributor Subscriber. Pretty Permalinks. There’s a Plugin for That. E-Commerce
E N D
Beginning Wordpress It’s more than a blog. It’s a CMS!
Multiple Users and Roles • Super Admin • Administrator • Editor • Author • Contributor • Subscriber
There’s a Plugin for That • E-Commerce • Image Galleries • SEO • Adminimize (customize what users see on the backend) • Custom Content Type Manager (customize posts) • Anti-spam • Contact Forms
Upload Themes Wordpress 2012 Theme Wordpress 2013 Theme
Inside the Theme • More than just a way to skin your site. • Uses the “loop” to display posts. • Queries your posts and pages. Configurable. • Use of customizable template files. • Think of PHP includes, but more flexible. • The Only Required Files for Themes • functions.php • style.css • index.php
functions.php Plugins – applied across all themes. functions.php – local to theme. • Actions • Functions triggered thru-out the WP Core. • e the Observer Pattern. • E.g. wp_footer, wp_header. • Filters • manipulate data output by actions. • Action Hooks • E.g. Add css / javascript to header. • Filter Hooks • E.g. Modify the length of post content.
style.css • Used in combination with template tags to achieve look of site. • WP generated classes plus theme specific classes • E.g. <body class=“home page logged-in..
Use Child Themes • Making changes to existing themes not recommended. • You will lose your changes. • Child themes extend functionality of an existing theme (parent theme). • Extend style.css. • Extend functions.php. Wordpress 2013 Theme My Child Theme
Multisite Wordpress • 1 Wordpress Installation – many sites. • Sub-Domains OR sub-directories. • Virtual – Do not have directory on your server. • Do have separate directories for media uploads. • Do have separate tables in the database. • Can also share plugins and themes.
Troubleshooting • Wordpress Codex • http://codex.wordpress.org/ • Community • http://wordpress.org/support/