Get Involved with WordPress
-
Upload
mario-peshev -
Category
Technology
-
view
144 -
download
0
description
Transcript of Get Involved with WordPress
Agenda
• What is WordPress?
• Extending the surface
• Create a theme
• Create a plugin
• Community
• Business
Mario Peshev
• WordPress Engineer and Consultant
• DevirX CTO
• @no_fear_inc
• Trainer and consultant
• WPBGUG organizer
• Java/PHP/Python background
What is WordPress
.org vs .com
WordPress.org WordPress.com
• SaaS
• Automattic, Inc.
• Fairly limited
• Hosted for free
• A set of predefined
extensions
• Open Source product
• WordPress Foundation
• Fully customizable
• Requires a hosting
• Unlimited themes/plugins
Background
• Started as a blogging platform from Matt Mullenweg and Mike Little
• Rapidly developing as a mature CMS
• Open Source Guaranteed by WordPress Foundation
• Contribution is open for everyone
• Transparent communication
• Ran by large magazines, government structures and different services (link)
Some Numbers
• 72M websites
• 20%+ of the US websites in 2011 are built
on the top of WordPress
• 40 official translations
• 500 000 new posts daily on
WordPress.com
• $50/h average rate for WordPress projects
• Infographic by Yoast
Prerequisites
• Apache
• PHP
• MySQL
• Basic HTML/CSS/PHP/JavaScript
knowledge
Available Functionality
• Posts/Pages and Custom Post Types
• Custom Fields
• Categories and Custom Taxonomies
• Basic User Management
Add-on Gems
• Types/Views
• S2Member/Members
• WooCommerce
• Gravity Forms
Inside of WordPress
Directory Structure
Creating a theme 1
• Add a new folder in wp-content/themes/
• Add blank index.php and style.css files
• On the top of style.css:
• <?php /* Theme Name: Our Blank Theme Theme URI: http://example.org Author: ourwporgusername Description: Some theme description */
Creating a theme 2
• <html> <head>...</head> <body> <div class="container"> <?php while( have_posts() ): the_post(); ?> <div class="item"> <h1><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h1> <?php if( is_single() ): ?> <div><?php the_content(); ?></div> <?php endif; ?> </div> <?php endwhile; ?> </div> </body> </html>
• Видео: Теми за WordPress (Марио Пешев)
Creating a plugin 1
• Create a folder in wp-content/plugins
• Create the base PHP file for your plugin
• Add the main header snippet:
• <?php /** Plugin Name: Our blank plugin Description: Some text for the plugins screen Plugin URI: https://example.org Author: ourwporguser */
Creating a plugin 2
• add_filter( 'the_content', 'dx_append_footer' ); function dx_append_footer( $content ) { $footer = '<div>Powered by Our Blank Plugin!</div>'; return $content . $footer; } add_action( 'wp_footer', 'dx_footer_copyright' ); function dx_footer_copyright() { echo "<div>All rights reserved to National Space, Sofia</div>"; } • Writing a Plugin via WPORG
Community – Forums
Community – Contributors
Community – Events
Community – Transparency
Business – Plugins
Business – oDesk
Business – Private
Questions?
Tweets as @no_fear_inc
Mario Peshev on LinkedIn
nofearinc on WordPress.org
GitHubering via mpeshev
DevWP.eu - blog