My Presentation from WordCamp Bournemouth 2014 on designing with data in WordPress. Covers structuring your data, the different data storage/attachment options available to you and some food for thought on how to use this data to deliver flexible WordPress websites.
2. http://wonderflux.com@jonnyauk http://tancdesign.com
HOWDY!
• Working with WordPress since 2004.
• Involved in WPUK group & co-organiser
of Birmingham WordPress user group.
• Likes to share:
• Wonderflux - free GPL theme framework
http://wonderflux.com
• WP-CMS Post Control - control post editing capabilities
http://wordpress.org/plugins/wp-cms-post-control
28. http://wonderflux.com@jonnyauk http://tancdesign.com
USER INPUT OF DATA
• WordPress metaboxes:
http://codex.wordpress.org/Function_Reference/add_meta_box
• ACF and Pods plugins… if you really have to:
https://wordpress.org/plugins/advanced-custom-fields
http://wordpress.org/plugins/pods
• Learn to make your own… it’s worth it!
29. http://wonderflux.com@jonnyauk http://tancdesign.com
DON’T TRUST USER DATA!
• Validate user input - don’t let them break it!
• Always escape output to stop nasties!
• Escape late, so you know the data is safe on output.
• Use $wpdb class if you are interacting with database.
• Reference:
http://codex.wordpress.org/Validating_Sanitizing_and_Escaping_User_Data