Learning PHP at Pixo was a lead into my initial projects: building custom WordPress themes. My first project was a child theme and my second was a ‘from scratch’ theme. I had two awesome mentors through this process and I can’t thank them enough. From there, I continued supporting and enhancing sites for a number of clients. What follows is a bit of a brain dump of notes and useful links I had bookmarked since I began working in WordPress.
One thing that really gets to me when learning a new framework/platform is that the official documentation is of poor quality in terms of content, organization, etc. WordPress does not suffer this problem. Most times when I go to the wordpress codex, I can find exactly what I’m looking for. This really helps soften the learning curve. At any rate, these are some of the better and/or more interesting links I’ve found.
- I have the template hierarchy overview page bookmarked and refer to it frequently.
- Template tags design pattern – a useful pattern, though I would take it one step further and break these all out into their own file to include in functions.php. Otherwise, functions.php can get incredibly large and difficult to manage.
- is_page_template() – Are you on a specific page template?
- Goodbye headaches. Hello menus – A good overview on WP menus
- wp_nav_menu() – Displays a given menu defined in a theme location
- wp_page_menu() – Display a list of pages
- wp_list_pages() – Display a list of pages
- wp_upload_dir() – where is your content uploads directory located?
- wp_enqueue_script() – attaching jQuery UI to page
- get_bloginfo() – Get details about your blog
- Creating a Favicon
Categories & Taxonomies
- Codex: Taxonomies
- wp_get_object_terms() – Retrieves the terms associated with the given object(s) in the supplied taxonomies
Custom post types and taxonomies
- A custom post type generator
- Make archives.php include custom post types (CSS Tricks)
- Make custom taxonomy URL start with same slug as custom post type
Other “advanced” features
- wordpress theme customizer
- Shortcode API
- Taking advantage of WordPress’ action hooks
- WP Codex: Widgets API
- WP codex: Writing a plugin.
- Blog: Five ways to secure your wordpress plugins
- A look into how a white hat hacker found a security venerability in WP core. (Blog post)
- 12 ways to secure your WordPress site (blog post)