22
Create a business site with WordPress without writing PHP

Create a business site with WordPress without writing PHP

Embed Size (px)

Citation preview

Page 1: Create a business site  with WordPress without writing PHP

Create a business site with WordPresswithout writing PHP

Page 2: Create a business site  with WordPress without writing PHP

Dat Hoang● Community & Support at

OnTheGoSystems■ WPML■ Toolset plugins

● Marketing Online● Analytics

Page 3: Create a business site  with WordPress without writing PHP

A classic business site?

Displays: ● Company’s services, products, or portfolio items.

● Customers’ testimonials

● Team members

● Static pages: About us, Contact us, Jobs and etc.

● News/blog.

Page 4: Create a business site  with WordPress without writing PHP

How to build?

Simple ways: ● Using a muli-purpose or corporate theme

● Using plugins: Our Team, Portfolio Gallery, Easy

Testimonials

But sometimes the clients (or yourself) want to have uncommon features.

Page 5: Create a business site  with WordPress without writing PHP

Example: enhance the site with services

We will:● add three random services to homepage● modify a single service page● create a page that aggregates all the services

Everything will be done from your WordPress Dashboard and without PHP coding!

Page 6: Create a business site  with WordPress without writing PHP

What to do?

● Expand WordPress site with custom content

● How to display your custom content (custom posts with custom fields) on the front-end

* The later part focuses on “add three random services to homepage”

Page 7: Create a business site  with WordPress without writing PHP

Add custom content to the WordPress admin

The result

Page 8: Create a business site  with WordPress without writing PHP

Add custom content to the WordPress admin1. Create a new Custom Post Type to store your Services

Go to Types -> Custom Post Types, and add a new Custom Post Type

Page 9: Create a business site  with WordPress without writing PHP

Add custom content to the WordPress admin2. Create a new Group of custom fields to store Service DetailsGo to Types -> Custom Fields, add a New Group.

● Assign the group a name: Service Details.● Associate your group with Services Custom Post Type:● Create ‘Single line’ field for Font Awesome icon code● Create ‘Numeric Field’ for Price

Page 10: Create a business site  with WordPress without writing PHP

Add custom content to the WordPress admin2. Create a new Group of custom fields to store Service Details

Page 11: Create a business site  with WordPress without writing PHP

Display the WordPress custom posts

● Create or modify a WordPress query.

● Use a plugin with shortcode to display: Views.

Page 12: Create a business site  with WordPress without writing PHP

Display the WordPress custom posts with Views

1. Create a View displaying 3 random services● Create a new View● In the Query section○ Content Selection: Services○ Ordering: Random order○ Limit and Offset: 3

Page 13: Create a business site  with WordPress without writing PHP

Display the WordPress custom posts with Views

1. Create a View displaying 3 random services

Page 14: Create a business site  with WordPress without writing PHP

Display the WordPress custom posts with Views

1. Create a View displaying 3 random services● Loop Output section

Page 15: Create a business site  with WordPress without writing PHP

Display the WordPress custom posts with Views

1. Create a View displaying 3 random services● Content template○ Service Icon○ Post title

with a link○ Excerpt○ Post URL

(‘Learn more’ link)

Page 16: Create a business site  with WordPress without writing PHP

Display the WordPress custom posts with Views

2. Add your View to your homepage

Page 17: Create a business site  with WordPress without writing PHP

Display the WordPress custom posts with Views3. Tweak the final effect using some CSS

Page 18: Create a business site  with WordPress without writing PHP

The result!

Page 19: Create a business site  with WordPress without writing PHP

Miss anything for ‘service’?

Single ‘service’ Archive ‘service’

Page 20: Create a business site  with WordPress without writing PHP

SummaryWe expanded our small business site with Services.

● Using the Types plugin, we expanded our site with new structures:

○ a Custom Post Type for storing Services,○ a Group of Custom Fields for storing Services details (a service icon and price)

● Using the Views plugin we displayed the Services:

○ On a single service page (that contains all service custom fields) using a Content Template.

○ On our homepage using a View.○ On a custom service archive page creating a WordPress Archive.

https://wp-types.com/2015/07/how-to-create-a-business-site-with-wordpress-without-writing-php/

Page 21: Create a business site  with WordPress without writing PHP

DiscussionQ & A

Page 22: Create a business site  with WordPress without writing PHP

Big Thanks!

Dat HoangCommunity & Support Vietnam E: [email protected]: wpml.org | wp-types.com | icanlocalize.com

Saigon, August 29, 2015