Old Dog. New Tricks.
Times and Technologies Change
HTMLCSSJAVASCRIPTPHPMYSQLASP.NETC#RAZORSQLSERVER
JAVAAPACHELINUXAGILETOMCATIISPERLSMALLTALKBASICDOS
-
Technology is a tool
-
Focus on business and the customer
-
Perfection is overrated and too costly
Competitive Edge
I need to be fast, affordable & adaptable. That's why...
WordPress Database
Simple. Extensible. Not over-engineered.
Built-in Post Types
Posts
-
Time-sensitive: blog-style, articles, events
-
Taxonomy: Categories/Tags
Pages
-
Static content
-
Hierarchical
Also: Attachments, Revisions, Menu Items
Custom Post Types
Features
-
Add your own post_type to the posts table
-
Query/filter on that post type
-
Add custom fields just for that post type
-
Will NOT show up in RSS Feed! (without hacking)
Usages
Listings, Employees, Products
Custom Post Types: DIY
Create a plugin or add code to your theme's functions.php file.
-
Register your CPT
register_post_type()
-
Register custom taxonomy (optional):
register_taxonomy()
-
Add meta boxes for custom fields:
add_meta_box()
add_action('add_meta_boxes', 'my_meta_box')
-
Add code to save your custom fields:
add_action('save_post', 'my_save_method')