SlideShare ist ein Scribd-Unternehmen logo
1 von 64
Downloaden Sie, um offline zu lesen
How to Build Your
Own WordPress
Classifieds Site
without pain
(workshops by
onTheGoSystems.com)
What’s a Classified Site
● Sellers post items
● Buyers look for
items
Not Only E-Commerce
And Not Only Products
Basic Elements for Classifieds
● Custom content types
○ Ads, Ad categories
● Templates to display
the content
● Custom search
● Content submission
We Use Plugins to Speed Things Up
● Types - set up custom
post types and fields.
● Layouts, Views - design
page layouts and their
content.
● CRED - build front-end
content submission and
editing forms.
Get Started on Discover-WP.com
Visit:
http://discover-wp.com/site-
types/toolset-bootstrap-
starter/
You will get a blank
WordPress site with all the
necessary plugins and a
starter theme.
Part 1
Adding custom content for Listings
Customizing
WordPress
Dashboard to
add content for
Listings
Task 1a
● Create a Custom
Post Type for
Listings.
● Add a few listings.
Creating a Listing Custom Post Type
1. Activate Types plugin
(already activated on discover-wp.com)
2. Types > Types and
Taxonomy
3. Add custom post type
> Listings / Listing
4. Enable Thumbnails
under Display Sections.
Adding example cars
Name Body Featured image
Off-Road 2012 Off-Road 2012 is a
perfect car to take
you anywhere.
Luxury Blue Just as its name
suggests, Luxury
Blue is pure luxury.
Class C
Motorhome
With Classs C
Motorhome, home
really is where the
heart is.
Editing Listings
After we created a
custom type, we
have title and body.
Custom fields will
add more details
about listings.
Task 1b
● Create
Custom
Fields for
Listings.
Custom Fields
1. Types > Custom fields
2. Add a custom fields
group ‘Listing details’
3. Choose where it
displays (on Listings)
Custom Fields
4. Add the fields
Listings
Editor With
Fields
The Listing editor
now shows the
newly added
custom fields.
Adding sample content
Name Expiry Date Price Email Phone Image
Off-Road 2012 October 1, 2015 12000 person@test.
com
+0123456789
Luxury Blue December 25,
2015
45000 neo@test.com +9876543210
Class C
Motorhome
May 10, 2016 32000 carlover@test.
com
+111333777
Summary of Part 1
● We used the Types
plugin
○ to create a Custom
Post Type for Listings
○ to add Custom Fields
to Listings
Part 2
Displaying a single listing
How WordPress Displays Content
Database >> PHP Templates >> HTML
Our Stack for Rapid Development
● Reference Sites theme
○ Grid system for easy content positioning
● Layouts plugin
○ Drag-and-drop editor for page layouts
● Views plugin
○ Content display engine
Layouts Editing and Display
Rows and Cells (Columns)
A layout includes rows
Rows include cells, which fit in columns
Layout cell types
Sub-Grids
A “grid cell” lets you
divide a cell into
more columns and
rows.
Visual Editor Cells for Static Texts
Content Template Cells for Fields
Task 2
● Display a
single Listing.
Before we create the first Layout...
● Create a menu in Appearance->Menus
● Start with homepage
Creating your First Layout
● Create a Layout
○ Select Empty layout,
○ Assign to ‘Listings’,
○ Give it a name
Your First Layout
● Add a new Row
● Insert Logo and Menu cells in it
Your First Layout
● Create a new row.
Insert a Content
Template cell in it.
Your First Layout
● In your Content
Template cell insert
a title field, wrap it
with <h1> tags
Your First Layout
● Add the next row
with Content
Template cells for a
feature image,
body and fields
(date, price, ...)
Summary of Part 2
We used the
Views and
Layouts plugins
and a Content
Template cell to
display a single
listing
Part 3
Organizing listings using categories
Organizing listings using categories
Task 3a
● Add a ‘Listing
Category’
Taxonomy.
● Create some
listing categories.
‘Listing Category’ Taxonomy
1. Types > Types and
Taxonomy
2. Add custom taxonomy
> Listing category
3. Connect it to the Listing type
4. Select taxonomy kind as
‘hierarchical’
Create a Few Sample Categories
● Listing > Listing
Categories
● Start adding
○ 4 top-level
categories
■ 5 child
categories
Add categories to listings
Name Body Category Featured image
Off-Road 2012 Off-Road 2012 is a
perfect car to take
you anywhere.
Safari
Luxury Blue Just as its name
suggests, Luxury
Blue is pure luxury
Sport cars
Class C
Motorhome
With Classs C
Motorhome, home
really is where the
heart is.
Motorhome
Displaying Categories as a tree
Task 3b
Display categories
as a tree, include:
● Top level categories.
● Child categories.
● Number of items in
categories.
Homepage Step 1) New Layout
● Create a WordPress page and assign to
‘home’
○ Leave empty, close to comments
● Create a new Layout and assign to
homepage
● Add a View cell
○ Taxonomy->Listing Categories
○ Display as unordered list
○ Add the category name to the Loop Output
Homepage step 2) Child View
● Under each category, we need a list of child
categories and the posts count.
● Views->New View
● Select the same taxonomy to load as the
parent
● How do we make it a load only child terms?
Homepage step 3) Connecting Views
Add a query filter:
● Parent = ‘set by parent View’
This filters only child terms of the category displayed by the parent View.
Add the Child View to the Parent
Finally, we add the child View into the Loop
Output of the parent View.
Categories Tree - Summary
1. Create a View for the top-level categories
2. Create a View for the child categories
3. Filter the query of the child-View, so that it
displays only child categories
4. Insert the child View into the Loop Output of
the parent View
5. Create a Layout for the category page
Task 3c:
● Display a
single
category
page.
Displaying Category Pages
● Create a new Layout
● Insert a ‘WordPress Archive’ cell
● Customize the appearance in the Template
● Assign to Taxonomy Archive > Listing
Categories.
Summary of Part 3
● We used the Types plugin
to create a taxonomy for
Listings categories
● We used the Layouts and
Views plugins to:
○ display categories tree (we
used 2 Views)
○ category archive (we used
WordPress Archive cell)
Part 4
Creating a custom search
Creating a Custom Search
Task 4
Build a custom
search for
listings.
Add the Search to a Page
● Create a page for the search
● Create a layout for that page
● Insert a View cell
A Custom Search is a View
● Create a new View
○ Choose ‘parametric search’
● Select the content type to search (display)
● Decide on the Parametric Search Settings
● Add fields to the ‘Filter’ section
○ For each field, choose input type
○ and apply styling with HTML
● Design the Loop Output
○ Add fields and style
Summary of Part 4
We created a
Parametric Search
View to build a custom
search.
Part 5
Creating a front-end form for adding a new
listing
Task 5
● Build front-end
forms to allow
visitors to submit
content.
Allowing Visitors to Submit Content
● Create a new page for Submit Listings
● Create a Layout and Insert the CRED form
to it
● Create a CRED form cell
○ Submit Listing, Create content, Display the content,
Publish
○ Use the Scaffold
○ Add a notification email to yourself
Summary of Part 5
We used the CRED
plugin to auto
generate a front-end
form for submitting
new ads
Free Toolset Classifieds demo site
discover-wp.com/site-templates/
Plugins available at wp-types.com

Weitere ähnliche Inhalte

Andere mochten auch (13)

PayForAnswer how to post a question/project
PayForAnswer how to post a question/projectPayForAnswer how to post a question/project
PayForAnswer how to post a question/project
 
sami c.v2-2015
sami  c.v2-2015sami  c.v2-2015
sami c.v2-2015
 
Pieter nortje fitter with dual diesel and auto
Pieter nortje fitter with dual diesel and autoPieter nortje fitter with dual diesel and auto
Pieter nortje fitter with dual diesel and auto
 
Green function
Green functionGreen function
Green function
 
0felicitari 8 martie
0felicitari 8 martie0felicitari 8 martie
0felicitari 8 martie
 
Uni2go week2
Uni2go week2Uni2go week2
Uni2go week2
 
UNI2GO Pitch Draft
UNI2GO Pitch DraftUNI2GO Pitch Draft
UNI2GO Pitch Draft
 
SouthAfricaReport_PROOF11
SouthAfricaReport_PROOF11SouthAfricaReport_PROOF11
SouthAfricaReport_PROOF11
 
That's me !!
That's me !!That's me !!
That's me !!
 
AdultLookbook_EMAIL
AdultLookbook_EMAILAdultLookbook_EMAIL
AdultLookbook_EMAIL
 
Uni2 go week5
Uni2 go week5Uni2 go week5
Uni2 go week5
 
Pieter nortje fitter with dual diesel and auto
Pieter nortje fitter with dual diesel and autoPieter nortje fitter with dual diesel and auto
Pieter nortje fitter with dual diesel and auto
 
SS12 C6 Driving Value Through Data Analysis - Combined v4 (final)
SS12 C6 Driving Value Through Data Analysis - Combined v4 (final)SS12 C6 Driving Value Through Data Analysis - Combined v4 (final)
SS12 C6 Driving Value Through Data Analysis - Combined v4 (final)
 

Ähnlich wie How to Build Your Own WordPress Classifieds Site without pain

Blogging for Business
Blogging for BusinessBlogging for Business
Blogging for Business
eagleg
 
Wordpress Pages introduction to wordpress and many other fages of wordpress.pptx
Wordpress Pages introduction to wordpress and many other fages of wordpress.pptxWordpress Pages introduction to wordpress and many other fages of wordpress.pptx
Wordpress Pages introduction to wordpress and many other fages of wordpress.pptx
hello1506hello
 
Workshop: Creating your first WordPress plugin
Workshop: Creating your first WordPress pluginWorkshop: Creating your first WordPress plugin
Workshop: Creating your first WordPress plugin
ylefebvre
 
WordPress 101 Saturday Session
WordPress 101 Saturday SessionWordPress 101 Saturday Session
WordPress 101 Saturday Session
pamselle
 
4 word press module 1d
4   word press module 1d4   word press module 1d
4 word press module 1d
Rozell Sneede
 

Ähnlich wie How to Build Your Own WordPress Classifieds Site without pain (20)

Advanced Intro to Wordpress
Advanced Intro to WordpressAdvanced Intro to Wordpress
Advanced Intro to Wordpress
 
how to create a blog on wordpress
how to create  a blog  on  wordpress how to create  a blog  on  wordpress
how to create a blog on wordpress
 
How To Use A Blog
How To Use A BlogHow To Use A Blog
How To Use A Blog
 
Streamlining Your Template Structures When Building Themes
Streamlining Your Template Structures When Building ThemesStreamlining Your Template Structures When Building Themes
Streamlining Your Template Structures When Building Themes
 
Blogging for Business
Blogging for BusinessBlogging for Business
Blogging for Business
 
WordPress: After The Install
WordPress: After The InstallWordPress: After The Install
WordPress: After The Install
 
Wordpress Pages introduction to wordpress and many other fages of wordpress.pptx
Wordpress Pages introduction to wordpress and many other fages of wordpress.pptxWordpress Pages introduction to wordpress and many other fages of wordpress.pptx
Wordpress Pages introduction to wordpress and many other fages of wordpress.pptx
 
Introduction to TeacherPress
Introduction to TeacherPressIntroduction to TeacherPress
Introduction to TeacherPress
 
Workshop: Creating your first WordPress plugin
Workshop: Creating your first WordPress pluginWorkshop: Creating your first WordPress plugin
Workshop: Creating your first WordPress plugin
 
WordPress 101 Saturday Session
WordPress 101 Saturday SessionWordPress 101 Saturday Session
WordPress 101 Saturday Session
 
4 word press module 1d
4   word press module 1d4   word press module 1d
4 word press module 1d
 
How to Customize the WordPress Admin Area
How to Customize the WordPress Admin AreaHow to Customize the WordPress Admin Area
How to Customize the WordPress Admin Area
 
Taming Drupal Blocks for Content Editors a.k.a. "Snippets"
Taming Drupal Blocks for Content Editors a.k.a. "Snippets"Taming Drupal Blocks for Content Editors a.k.a. "Snippets"
Taming Drupal Blocks for Content Editors a.k.a. "Snippets"
 
Site builder
Site builderSite builder
Site builder
 
Adding Dynamic Content to your Joomla Website - Make your Website Dance
Adding Dynamic Content to your Joomla Website - Make your Website DanceAdding Dynamic Content to your Joomla Website - Make your Website Dance
Adding Dynamic Content to your Joomla Website - Make your Website Dance
 
Fetc2014 WordPress Presentation
Fetc2014 WordPress PresentationFetc2014 WordPress Presentation
Fetc2014 WordPress Presentation
 
Word press training
Word press trainingWord press training
Word press training
 
Applying New Technologies
Applying New TechnologiesApplying New Technologies
Applying New Technologies
 
Workshop I: Intro to Using Drupal
Workshop I: Intro to Using DrupalWorkshop I: Intro to Using Drupal
Workshop I: Intro to Using Drupal
 
Wordpress Widgets type
Wordpress Widgets typeWordpress Widgets type
Wordpress Widgets type
 

Kürzlich hochgeladen

VIP Call Girls Pollachi 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Pollachi 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Pollachi 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Pollachi 7001035870 Whatsapp Number, 24/07 Booking
dharasingh5698
 
Lucknow ❤CALL GIRL 88759*99948 ❤CALL GIRLS IN Lucknow ESCORT SERVICE❤CALL GIRL
Lucknow ❤CALL GIRL 88759*99948 ❤CALL GIRLS IN Lucknow ESCORT SERVICE❤CALL GIRLLucknow ❤CALL GIRL 88759*99948 ❤CALL GIRLS IN Lucknow ESCORT SERVICE❤CALL GIRL
Lucknow ❤CALL GIRL 88759*99948 ❤CALL GIRLS IN Lucknow ESCORT SERVICE❤CALL GIRL
imonikaupta
 
在线制作约克大学毕业证(yu毕业证)在读证明认证可查
在线制作约克大学毕业证(yu毕业证)在读证明认证可查在线制作约克大学毕业证(yu毕业证)在读证明认证可查
在线制作约克大学毕业证(yu毕业证)在读证明认证可查
ydyuyu
 
Low Sexy Call Girls In Mohali 9053900678 🥵Have Save And Good Place 🥵
Low Sexy Call Girls In Mohali 9053900678 🥵Have Save And Good Place 🥵Low Sexy Call Girls In Mohali 9053900678 🥵Have Save And Good Place 🥵
Low Sexy Call Girls In Mohali 9053900678 🥵Have Save And Good Place 🥵
Chandigarh Call girls 9053900678 Call girls in Chandigarh
 
VIP Call Girls Himatnagar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Himatnagar 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Himatnagar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Himatnagar 7001035870 Whatsapp Number, 24/07 Booking
dharasingh5698
 

Kürzlich hochgeladen (20)

VIP Call Girls Pollachi 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Pollachi 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Pollachi 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Pollachi 7001035870 Whatsapp Number, 24/07 Booking
 
Sarola * Female Escorts Service in Pune | 8005736733 Independent Escorts & Da...
Sarola * Female Escorts Service in Pune | 8005736733 Independent Escorts & Da...Sarola * Female Escorts Service in Pune | 8005736733 Independent Escorts & Da...
Sarola * Female Escorts Service in Pune | 8005736733 Independent Escorts & Da...
 
Shikrapur - Call Girls in Pune Neha 8005736733 | 100% Gennuine High Class Ind...
Shikrapur - Call Girls in Pune Neha 8005736733 | 100% Gennuine High Class Ind...Shikrapur - Call Girls in Pune Neha 8005736733 | 100% Gennuine High Class Ind...
Shikrapur - Call Girls in Pune Neha 8005736733 | 100% Gennuine High Class Ind...
 
APNIC Updates presented by Paul Wilson at ARIN 53
APNIC Updates presented by Paul Wilson at ARIN 53APNIC Updates presented by Paul Wilson at ARIN 53
APNIC Updates presented by Paul Wilson at ARIN 53
 
Lucknow ❤CALL GIRL 88759*99948 ❤CALL GIRLS IN Lucknow ESCORT SERVICE❤CALL GIRL
Lucknow ❤CALL GIRL 88759*99948 ❤CALL GIRLS IN Lucknow ESCORT SERVICE❤CALL GIRLLucknow ❤CALL GIRL 88759*99948 ❤CALL GIRLS IN Lucknow ESCORT SERVICE❤CALL GIRL
Lucknow ❤CALL GIRL 88759*99948 ❤CALL GIRLS IN Lucknow ESCORT SERVICE❤CALL GIRL
 
Call Girls Sangvi Call Me 7737669865 Budget Friendly No Advance BookingCall G...
Call Girls Sangvi Call Me 7737669865 Budget Friendly No Advance BookingCall G...Call Girls Sangvi Call Me 7737669865 Budget Friendly No Advance BookingCall G...
Call Girls Sangvi Call Me 7737669865 Budget Friendly No Advance BookingCall G...
 
WhatsApp 📞 8448380779 ✅Call Girls In Mamura Sector 66 ( Noida)
WhatsApp 📞 8448380779 ✅Call Girls In Mamura Sector 66 ( Noida)WhatsApp 📞 8448380779 ✅Call Girls In Mamura Sector 66 ( Noida)
WhatsApp 📞 8448380779 ✅Call Girls In Mamura Sector 66 ( Noida)
 
All Time Service Available Call Girls Mg Road 👌 ⏭️ 6378878445
All Time Service Available Call Girls Mg Road 👌 ⏭️ 6378878445All Time Service Available Call Girls Mg Road 👌 ⏭️ 6378878445
All Time Service Available Call Girls Mg Road 👌 ⏭️ 6378878445
 
VIP Model Call Girls NIBM ( Pune ) Call ON 8005736733 Starting From 5K to 25K...
VIP Model Call Girls NIBM ( Pune ) Call ON 8005736733 Starting From 5K to 25K...VIP Model Call Girls NIBM ( Pune ) Call ON 8005736733 Starting From 5K to 25K...
VIP Model Call Girls NIBM ( Pune ) Call ON 8005736733 Starting From 5K to 25K...
 
Yerawada ] Independent Escorts in Pune - Book 8005736733 Call Girls Available...
Yerawada ] Independent Escorts in Pune - Book 8005736733 Call Girls Available...Yerawada ] Independent Escorts in Pune - Book 8005736733 Call Girls Available...
Yerawada ] Independent Escorts in Pune - Book 8005736733 Call Girls Available...
 
Call Girls Ludhiana Just Call 98765-12871 Top Class Call Girl Service Available
Call Girls Ludhiana Just Call 98765-12871 Top Class Call Girl Service AvailableCall Girls Ludhiana Just Call 98765-12871 Top Class Call Girl Service Available
Call Girls Ludhiana Just Call 98765-12871 Top Class Call Girl Service Available
 
VIP Model Call Girls Hadapsar ( Pune ) Call ON 9905417584 Starting High Prof...
VIP Model Call Girls Hadapsar ( Pune ) Call ON 9905417584 Starting  High Prof...VIP Model Call Girls Hadapsar ( Pune ) Call ON 9905417584 Starting  High Prof...
VIP Model Call Girls Hadapsar ( Pune ) Call ON 9905417584 Starting High Prof...
 
在线制作约克大学毕业证(yu毕业证)在读证明认证可查
在线制作约克大学毕业证(yu毕业证)在读证明认证可查在线制作约克大学毕业证(yu毕业证)在读证明认证可查
在线制作约克大学毕业证(yu毕业证)在读证明认证可查
 
Low Sexy Call Girls In Mohali 9053900678 🥵Have Save And Good Place 🥵
Low Sexy Call Girls In Mohali 9053900678 🥵Have Save And Good Place 🥵Low Sexy Call Girls In Mohali 9053900678 🥵Have Save And Good Place 🥵
Low Sexy Call Girls In Mohali 9053900678 🥵Have Save And Good Place 🥵
 
VIP Call Girls Himatnagar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Himatnagar 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Himatnagar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Himatnagar 7001035870 Whatsapp Number, 24/07 Booking
 
Pune Airport ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready...
Pune Airport ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready...Pune Airport ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready...
Pune Airport ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready...
 
Trump Diapers Over Dems t shirts Sweatshirt
Trump Diapers Over Dems t shirts SweatshirtTrump Diapers Over Dems t shirts Sweatshirt
Trump Diapers Over Dems t shirts Sweatshirt
 
20240508 QFM014 Elixir Reading List April 2024.pdf
20240508 QFM014 Elixir Reading List April 2024.pdf20240508 QFM014 Elixir Reading List April 2024.pdf
20240508 QFM014 Elixir Reading List April 2024.pdf
 
Top Rated Pune Call Girls Daund ⟟ 6297143586 ⟟ Call Me For Genuine Sex Servi...
Top Rated  Pune Call Girls Daund ⟟ 6297143586 ⟟ Call Me For Genuine Sex Servi...Top Rated  Pune Call Girls Daund ⟟ 6297143586 ⟟ Call Me For Genuine Sex Servi...
Top Rated Pune Call Girls Daund ⟟ 6297143586 ⟟ Call Me For Genuine Sex Servi...
 
Katraj ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready For S...
Katraj ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready For S...Katraj ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready For S...
Katraj ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready For S...
 

How to Build Your Own WordPress Classifieds Site without pain

  • 1. How to Build Your Own WordPress Classifieds Site without pain (workshops by onTheGoSystems.com)
  • 2. What’s a Classified Site ● Sellers post items ● Buyers look for items
  • 4. And Not Only Products
  • 5. Basic Elements for Classifieds ● Custom content types ○ Ads, Ad categories ● Templates to display the content ● Custom search ● Content submission
  • 6. We Use Plugins to Speed Things Up ● Types - set up custom post types and fields. ● Layouts, Views - design page layouts and their content. ● CRED - build front-end content submission and editing forms.
  • 7. Get Started on Discover-WP.com Visit: http://discover-wp.com/site- types/toolset-bootstrap- starter/ You will get a blank WordPress site with all the necessary plugins and a starter theme.
  • 8. Part 1 Adding custom content for Listings
  • 10. Task 1a ● Create a Custom Post Type for Listings. ● Add a few listings.
  • 11. Creating a Listing Custom Post Type 1. Activate Types plugin (already activated on discover-wp.com) 2. Types > Types and Taxonomy 3. Add custom post type > Listings / Listing 4. Enable Thumbnails under Display Sections.
  • 12. Adding example cars Name Body Featured image Off-Road 2012 Off-Road 2012 is a perfect car to take you anywhere. Luxury Blue Just as its name suggests, Luxury Blue is pure luxury. Class C Motorhome With Classs C Motorhome, home really is where the heart is.
  • 13. Editing Listings After we created a custom type, we have title and body. Custom fields will add more details about listings.
  • 15. Custom Fields 1. Types > Custom fields 2. Add a custom fields group ‘Listing details’ 3. Choose where it displays (on Listings)
  • 16. Custom Fields 4. Add the fields
  • 17. Listings Editor With Fields The Listing editor now shows the newly added custom fields.
  • 18. Adding sample content Name Expiry Date Price Email Phone Image Off-Road 2012 October 1, 2015 12000 person@test. com +0123456789 Luxury Blue December 25, 2015 45000 neo@test.com +9876543210 Class C Motorhome May 10, 2016 32000 carlover@test. com +111333777
  • 19. Summary of Part 1 ● We used the Types plugin ○ to create a Custom Post Type for Listings ○ to add Custom Fields to Listings
  • 20. Part 2 Displaying a single listing
  • 21. How WordPress Displays Content Database >> PHP Templates >> HTML
  • 22. Our Stack for Rapid Development ● Reference Sites theme ○ Grid system for easy content positioning ● Layouts plugin ○ Drag-and-drop editor for page layouts ● Views plugin ○ Content display engine
  • 24. Rows and Cells (Columns) A layout includes rows Rows include cells, which fit in columns
  • 26. Sub-Grids A “grid cell” lets you divide a cell into more columns and rows.
  • 27. Visual Editor Cells for Static Texts
  • 29. Task 2 ● Display a single Listing.
  • 30. Before we create the first Layout... ● Create a menu in Appearance->Menus ● Start with homepage
  • 31. Creating your First Layout ● Create a Layout ○ Select Empty layout, ○ Assign to ‘Listings’, ○ Give it a name
  • 32. Your First Layout ● Add a new Row ● Insert Logo and Menu cells in it
  • 33. Your First Layout ● Create a new row. Insert a Content Template cell in it.
  • 34. Your First Layout ● In your Content Template cell insert a title field, wrap it with <h1> tags
  • 35. Your First Layout ● Add the next row with Content Template cells for a feature image, body and fields (date, price, ...)
  • 36. Summary of Part 2 We used the Views and Layouts plugins and a Content Template cell to display a single listing
  • 37. Part 3 Organizing listings using categories
  • 39. Task 3a ● Add a ‘Listing Category’ Taxonomy. ● Create some listing categories.
  • 40. ‘Listing Category’ Taxonomy 1. Types > Types and Taxonomy 2. Add custom taxonomy > Listing category 3. Connect it to the Listing type 4. Select taxonomy kind as ‘hierarchical’
  • 41. Create a Few Sample Categories ● Listing > Listing Categories ● Start adding ○ 4 top-level categories ■ 5 child categories
  • 42. Add categories to listings Name Body Category Featured image Off-Road 2012 Off-Road 2012 is a perfect car to take you anywhere. Safari Luxury Blue Just as its name suggests, Luxury Blue is pure luxury Sport cars Class C Motorhome With Classs C Motorhome, home really is where the heart is. Motorhome
  • 44. Task 3b Display categories as a tree, include: ● Top level categories. ● Child categories. ● Number of items in categories.
  • 45. Homepage Step 1) New Layout ● Create a WordPress page and assign to ‘home’ ○ Leave empty, close to comments ● Create a new Layout and assign to homepage ● Add a View cell ○ Taxonomy->Listing Categories ○ Display as unordered list ○ Add the category name to the Loop Output
  • 46. Homepage step 2) Child View ● Under each category, we need a list of child categories and the posts count. ● Views->New View ● Select the same taxonomy to load as the parent ● How do we make it a load only child terms?
  • 47. Homepage step 3) Connecting Views Add a query filter: ● Parent = ‘set by parent View’ This filters only child terms of the category displayed by the parent View.
  • 48. Add the Child View to the Parent Finally, we add the child View into the Loop Output of the parent View.
  • 49. Categories Tree - Summary 1. Create a View for the top-level categories 2. Create a View for the child categories 3. Filter the query of the child-View, so that it displays only child categories 4. Insert the child View into the Loop Output of the parent View 5. Create a Layout for the category page
  • 50. Task 3c: ● Display a single category page.
  • 51. Displaying Category Pages ● Create a new Layout ● Insert a ‘WordPress Archive’ cell ● Customize the appearance in the Template ● Assign to Taxonomy Archive > Listing Categories.
  • 52. Summary of Part 3 ● We used the Types plugin to create a taxonomy for Listings categories ● We used the Layouts and Views plugins to: ○ display categories tree (we used 2 Views) ○ category archive (we used WordPress Archive cell)
  • 53. Part 4 Creating a custom search
  • 55. Task 4 Build a custom search for listings.
  • 56. Add the Search to a Page ● Create a page for the search ● Create a layout for that page ● Insert a View cell
  • 57. A Custom Search is a View ● Create a new View ○ Choose ‘parametric search’ ● Select the content type to search (display) ● Decide on the Parametric Search Settings ● Add fields to the ‘Filter’ section ○ For each field, choose input type ○ and apply styling with HTML ● Design the Loop Output ○ Add fields and style
  • 58. Summary of Part 4 We created a Parametric Search View to build a custom search.
  • 59. Part 5 Creating a front-end form for adding a new listing
  • 60. Task 5 ● Build front-end forms to allow visitors to submit content.
  • 61. Allowing Visitors to Submit Content ● Create a new page for Submit Listings ● Create a Layout and Insert the CRED form to it ● Create a CRED form cell ○ Submit Listing, Create content, Display the content, Publish ○ Use the Scaffold ○ Add a notification email to yourself
  • 62. Summary of Part 5 We used the CRED plugin to auto generate a front-end form for submitting new ads
  • 63. Free Toolset Classifieds demo site discover-wp.com/site-templates/
  • 64. Plugins available at wp-types.com