30
Get Involved in WordPress Mario Peshev @no_fear_inc WordPress Engineer DevWP.eu

Get Involved with WordPress

Embed Size (px)

DESCRIPTION

How to Get Involved with WordPress, a talk given at Zero Marketing Conference, 2013

Citation preview

Page 1: Get Involved with WordPress

Get Involved in WordPress

Mario Peshev @no_fear_inc

WordPress Engineer DevWP.eu

Page 2: Get Involved with WordPress

Agenda

• What is WordPress?

• Extending the surface

• Create a theme

• Create a plugin

• Community

• Business

Page 3: Get Involved with WordPress

Mario Peshev

• WordPress Engineer and Consultant

• DevirX CTO

• @no_fear_inc

• Trainer and consultant

• WPBGUG organizer

• Java/PHP/Python background

Page 4: Get Involved with WordPress

What is WordPress

Page 5: Get Involved with 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

Page 6: Get Involved with WordPress

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)

Page 7: Get Involved with WordPress

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

Page 8: Get Involved with WordPress

Prerequisites

• Apache

• PHP

• MySQL

• Basic HTML/CSS/PHP/JavaScript

knowledge

Page 9: Get Involved with WordPress

Available Functionality

• Posts/Pages and Custom Post Types

• Custom Fields

• Categories and Custom Taxonomies

• Basic User Management

Page 10: Get Involved with WordPress

Add-on Gems

• Types/Views

• S2Member/Members

• WooCommerce

• Gravity Forms

Page 15: Get Involved with WordPress

Inside of WordPress

Page 17: Get Involved with WordPress

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 */

Page 18: Get Involved with WordPress

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 (Марио Пешев)

Page 20: Get Involved with 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 */

Page 21: Get Involved with WordPress

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

Page 30: Get Involved with WordPress

Questions?

Tweets as @no_fear_inc

Mario Peshev on LinkedIn

nofearinc on WordPress.org

GitHubering via mpeshev

DevWP.eu - blog