SlideShare a Scribd company logo
1 of 111
Colin Ho                     Elaine Poh




colin@digitalboomerang.com.sg   elaine@digitalboomerang.com.sg
Digital Boomerang
Digital Boomerang
Source: http://creepside.blogspot.com/2008/03/jeepney-stories.html
Source: http://www.stuartxchange.org/Jeepney.html
Source: http://www.stuartxchange.org/Jeepney.html
Hood
                                                    Ornaments




Source: http://www.stuartxchange.org/Jeepney.html
User Feedback
                                                                         Mechanism




Source: http://pinoyfunnypictures.blogspot.com/2008_10_01_archive.html
Amphibious
                                         Mode




Source: http://newshopper.sulekha.com/
Leather Seats
                                                             and LCD
                                                             Monitors




Source: http://paulding.blogspot.com/2008/11/amazing-high-
Spoilers




Source: http://cs.scaleautomag.com/scacs/forums/p/68633/739928.aspx
Kobe Bryant




Source: inside.nikebasketball.com
Source: http://sulit.com.ph/, http://blog.asiahotels.com/boracay-guide/, http://www.pvegetah.com/2009/04/electric-vehicle-in-other-place-of-the-philippines/
W h a t w e w il l b e g o in g
c o v e r in g
    1. Set up a custom homepage.

    Create multiple post queries.

    5. Display thumbnails for posts.

    7. Add labels with Tags.

    9. Stylise individual posts /pages.

 Last updated: 8-Jul-2010   © Digital Boomerang 2010   22
Let’s get
T y p ic a l W o r d p r e s s
Th e m e

                                     header.php




                            index.php                            sidebar.php
                            List latest posts


                                      footer.php

 Last updated: 8-Jul-2010             © Digital Boomerang 2010                 24
Homepage




                           List latest posts




Last updated: 8-Jul-2010           © Digital Boomerang 2010        25
Category




                           List latest posts




Last updated: 8-Jul-2010           © Digital Boomerang 2010        26
Tag Archive




                           List latest posts




Last updated: 8-Jul-2010           © Digital Boomerang 2010          27
O n t h e h o m e p a g e ...

                                     header.php

               Displays something else
               only on the homepage
                            index.php                            sidebar.php
                            List latest posts


                                      footer.php

 Last updated: 8-Jul-2010             © Digital Boomerang 2010                 28
Header.php
   Display sticky post




Display a list of most
    viewed posts




Display latest posts




 Last updated: 8-Jul-2010    © Digital Boomerang 2010   29
1                                   Setup aC om H g
                                            ust omepae




         © Digital Boomerang 2010         30
© Digital Boomerang 2010
Set up a cus to m
Ho m ep ag e
                                                 http://beta.challenge.gov.sg

         Wh a t :
 To load a custom homepage instead
 of the WP default homepage
 (index.php)




 Last updated: 8-Jul-2010     © Digital Boomerang 2010                          31
Set up a cus to m
Ho m ep ag e

          Ho w :                              WordPress Hierarchy


  Step 1: Duplicate index.php                     Homepage


  Step 2: Rename as home.php                               WP will first look for the
                                                           existence of this file.

                                                  home.php
                                                                 If it finds one, WP will
                                                                 load this file

                                                           If it doesn’t, WP will load
                                                           the default index.php
                                                  index.php




 Last updated: 8-Jul-2010       © Digital Boomerang 2010                                 32
Header.php




                           home.php


Last updated: 8-Jul-2010     © Digital Boomerang 2010   33
National
                                                      Geographic




Last updated: 8-Jul-2010   © Digital Boomerang 2010        34
Chris Phelps
                                                      Photography




Last updated: 8-Jul-2010   © Digital Boomerang 2010          35
Ravengraphy




Last updated: 8-Jul-2010   © Digital Boomerang 2010         36
Set up a cus to m
Ho m ep ag e

                                  header.php




                            home.php                         sidebar.php
                        1 query to display
                           latest posts

                                  footer.php

 Last updated: 8-Jul-2010         © Digital Boomerang 2010                 37
MCYS SCREENSHOT




Last updated: 8-Jul-2010       © Digital Boomerang 2010   38
MCYS SCREENSHOT




Last updated: 8-Jul-2010       © Digital Boomerang 2010   39
MCYS SCREENSHOT




Last updated: 8-Jul-2010       © Digital Boomerang 2010   40
MCYS SCREENSHOT




Last updated: 8-Jul-2010       © Digital Boomerang 2010   41
Header.php
Display only 1 sticky post




Display a list of most
    viewed posts




 Display latest posts




  Last updated: 8-Jul-2010    © Digital Boomerang 2010   42
Header.php
Display only 1 sticky post




 Display latest posts




  Last updated: 8-Jul-2010    © Digital Boomerang 2010   43
2                          Create multiple post queries




         © Digital Boomerang 2010      44
© Digital Boomerang 2010
C r e a t e m u l t ip l e p o s t
q u e r ie s

           Ho w :
   Step 1: Query sticky post. Paste this code in home.php.

       $sticky = get_option( 'sticky_posts' );

       query_posts ( array(
       'post__in' => $sticky
       'caller_get_posts' => 1,
       'posts_per_page' => 1 ) );


   Step 2: Create a loop to display the sticky post.

   Step 3: At the end of the sticky post loop, add this:

       wp_reset_query();
       // Reset the query
  Last updated: 8-Jul-2010        © Digital Boomerang 2010   45
home.php



 Query sticky

                                                                  Start of
                                                                   Loop




                                End of Loop
sets query

     Last updated: 8-Jul-2010          © Digital Boomerang 2010                  46
Header.php
Display only 1 sticky post




 Display latest posts




  Last updated: 8-Jul-2010    © Digital Boomerang 2010   47
C r e a t e m u l t ip l e p o s t
q u e r ie s

           Ho w :
   Step 1: Query 10 latest posts excluding sticky posts before the latest posts
   loop.


       query_posts(array(
       'posts_per_page' => 10,
       'post__not_in' =>get_option('sticky_posts')
       ));




  Last updated: 8-Jul-2010       © Digital Boomerang 2010                         48
home.php




Query latest
  posts




   Last updated: 8-Jul-2010   © Digital Boomerang 2010       49
Header.php
Display only 1 sticky post




 Display latest posts
Excluding sticky post


  Last updated: 8-Jul-2010    © Digital Boomerang 2010   50
Digital Photography
                                                             School




Last updated: 8-Jul-2010   © Digital Boomerang 2010                51
Patrick Hoelck




Last updated: 8-Jul-2010   © Digital Boomerang 2010           52
GOOD Magazine




Last updated: 8-Jul-2010   © Digital Boomerang 2010            53
3                    Display thumbnails for posts




         © Digital Boomerang 2010     54
© Digital Boomerang 2010
D is p l a y t h u m b n a il s f o r p o s t s
                                                            http://beta.challenge.gov.sg


            Wh a t :
   To display a thumbnail of a post in a
   listing.




 Last updated: 8-Jul-2010        © Digital Boomerang 2010                          55
D is p l a y t h u m b n a il s f o r
posts

           Ho w
           :
   Step 1: Add these 2 lines of text into functions.php.


      add_theme_support( 'post-thumbnails' );
      // Declares that your theme supports this feature.

      set_post_thumbnail_size( 200, 200, true );
      // Sets Thumbnail size, crops to 200 by 200




  Last updated: 8-Jul-2010       © Digital Boomerang 2010   56
functions.php




Last updated: 8-Jul-2010   © Digital Boomerang 2010           57
D is p l a y t h u m b n a il s f o r
posts

           Ho w
           :
   Step 2: Add this line of text into page.php, single.php, home.php or even
           index.php within the Loop.



       the_post_thumbnail();
       // Displays default thumbnail, 200 by 200




  Last updated: 8-Jul-2010       © Digital Boomerang 2010                      58
home.php




  Display
thumbnails




 Last updated: 8-Jul-2010   © Digital Boomerang 2010       59
D is p l a y t h u m b n a il s f o r
posts

           Ho w
           :
   Step 3: Upload images for posts.
           Select image as “featured
           image” in every post.




  Last updated: 8-Jul-2010      © Digital Boomerang 2010   60
D is p l a y t h u m b n a il s f o r p o s t s
thumbnails

                                                            http://beta.challenge.gov.sg


            Wh a t :
   To display a thumbnail of a post in a
   listing.

thumbnails




 Last updated: 8-Jul-2010        © Digital Boomerang 2010                          61
D is p l a y t h u m b n a il s f o r
posts
           Ho w
           :
   Step 1: Add this line into functions.php.

      add_image_size(‘big-thumbnail’, 400, 250, true );
      // Set bigger thumbnails for posts


   Step 2: Add this line of text into page.php, single.php,
   home.php or even index.php within the Loop.

       the_post_thumbnail(‘big-thumbnail’);
       // Displays thumbnails 400 by 250


       the_post_thumbnail();
       // Displays default thumbnail, 200 by 200



  Last updated: 8-Jul-2010        © Digital Boomerang 2010    62
functions.php




                                                      Add new thumbnail size




Last updated: 8-Jul-2010   © Digital Boomerang 2010                            63
home.php




Display bigger
 thumbnails




 Last updated: 8-Jul-2010   © Digital Boomerang 2010       64
D is p l a y t h u m b n a il s f o r
posts

           T ip s

   • Only applicable for WP2.9 and above.

   • Make sure an image is selected as “Featured Image”

   • Thumbnail sizes can’t be changed after setting.

   So plan ahead!




  Last updated: 8-Jul-2010   © Digital Boomerang 2010     65
WPZoom PhotoBlog




Last updated: 8-Jul-2010   © Digital Boomerang 2010             66
TIME Magazine
                                                           Abduzeedo




Last updated: 8-Jul-2010   © Digital Boomerang 2010            67
Bergh




Last updated: 8-Jul-2010   © Digital Boomerang 2010     68
Homepage




Last updated: 8-Jul-2010   © Digital Boomerang 2010       69
4
                                    Add labels with Tags




         © Digital Boomerang 2010           70
© Digital Boomerang 2010
Ad d l a b e l s w it h T a g s

          Ho w
          :
  Step 1: Create a tag named ‘Online Exclusive’ for your post.




  Step 2: In the loop of home.php, enter these lines of code.

     if ( has_tag('online-exclusive') ) {
     echo "<span class='tag-excl'>Online Exclusive</span>";
     }




 Last updated: 8-Jul-2010       © Digital Boomerang 2010         71
home.php




Display a label for
 each post tagged
‘Online Exclusive’.




   Last updated: 8-Jul-2010   © Digital Boomerang 2010       72
Styles.css




                           CSS style for the label,
                              Online Exclusive




Last updated: 8-Jul-2010   © Digital Boomerang 2010        73
Ars Technica




Last updated: 8-Jul-2010   © Digital Boomerang 2010         74
10 Steps




Last updated: 8-Jul-2010   © Digital Boomerang 2010      75
WIRED




Last updated: 8-Jul-2010   © Digital Boomerang 2010    76
Homepage




Last updated: 8-Jul-2010   © Digital Boomerang 2010       77
Category




Last updated: 8-Jul-2010   © Digital Boomerang 2010       78
5
                           Stylise individual Posts / Pages




         © Digital Boomerang 2010       79
© Digital Boomerang 2010
Stylise individual posts/pages



            Wh a t :
   To dynamically insert class names where applied.



       <?php body_class(); ?>
       // declared in header.php




 Last updated: 8-Jul-2010      © Digital Boomerang 2010   80
Homepage




 <body <?php body_class(); ?> >


 <body class=“home blog”>




Last updated: 8-Jul-2010   © Digital Boomerang 2010       81
Category




<body <?php body_class(); ?> >



<body class=“archive category category-on-job”>




Last updated: 8-Jul-2010   © Digital Boomerang 2010       82
Stylise individual posts/pages




 .home .ico-exclusive {
 background:#00A8DF;                   .category .ico-exclusive {
 left:0; top:61px;                     background-image:
 height:15px;                          url(images/ico-excl.png);
 width:120px;                          right:0; bottom:-10px;
 text-align:left;                      height:45px; width:125px;
 color:#fff;                           }
 }
 Last updated: 8-Jul-2010   © Digital Boomerang 2010                83
Jason Santa
Maria’s site
Jason Santa
Maria’s site
Jason Santa
Maria’s site
Last updated: 8-Jul-2010   © Digital Boomerang 2010   87
Last updated: 8-Jul-2010   © Digital Boomerang 2010   88
Last updated: 8-Jul-2010   © Digital Boomerang 2010   89
Last updated: 8-Jul-2010   © Digital Boomerang 2010   90
Last updated: 8-Jul-2010   © Digital Boomerang 2010   91
Stylise individual posts/pages



            Wh a t :
   To dynamically insert class names where applied.



       <?php post_class(); ?>
       // declared in content areas




 Last updated: 8-Jul-2010      © Digital Boomerang 2010   92
<div id=“post-<?php the_ID(); ?>” the <?php post_class(); ?> >


<div=id“post-32” class=“category-episode-12 tag-anna”>


 Last updated: 8-Jul-2010   © Digital Boomerang 2010             93
<div id=“post-<?php the_ID(); ?>” the <?php post_class(); ?> >


<div=id“post-32” class=“category-episode-12 tag-hui-leng”>


 Last updated: 8-Jul-2010   © Digital Boomerang 2010             94
Carsonified
Carsonified
Carsonified
Carsonified
Carsonified
Carsonified
Carsonified
Re c a p t h e H a c k s

    1. Set up a custom homepage.

    Create multiple post queries.

    5. Display thumbnails for posts.

    7. Add labels with Tags.

    9. Stylise individual posts /pages.

 Last updated: 8-Jul-2010   © Digital Boomerang 2010   102
B ore y ha a a…
                                     ef ou ck wy




         © Digital Boomerang 2010          103
© Digital Boomerang 2010
Wordpress in the Future...
                Join us on Facebook
                http://www.facebook.com/digitalboomerang




         © Digital Boomerang 2010      104
© Digital Boomerang 2010
Questions?




         © Digital Boomerang 2010       105
© Digital Boomerang 2010
T o o l s t h a t w il l h e l p y o u

                            Firebug
                            Provides web development tools at your
                            fingertips while you browse.

                            You can edit, debug, and monitor CSS, HTML,
                            and JavaScript live in any web page.
                            http://getfirebug.com/
                             Inspect and edit                    Tweak
                             HTML                                CSS




 Last updated: 8-Jul-2010             © Digital Boomerang 2010            106
T o o l s t h a t w il l h e l p y o u

IE Developer Bar
Provides web development tools at your fingertips while you browse FOR
INTERNET EXPLORER 6 AND 7.

You can edit, debug, and monitor CSS, HTML, and JavaScript live in any web
page.
http://fileforum.betanews.com/detail/Internet-Explorer-Developer-Toolbar




 Last updated: 8-Jul-2010      © Digital Boomerang 2010                      107
T o o l s t h a t w il l h e l p y o u

                IE Tester
                IETester is a free Web Browser that allows you to have the
                rendering and javascript engines of IE9 preview, IE8, IE7 IE 6
                andIE5.5 on Windows 7, Vista and XP, as well as the installed IE in
                the same process. 
                 http://www.my-debugbar.com/wiki/IETester/HomePage




 Last updated: 8-Jul-2010            © Digital Boomerang 2010                         108
T o o l s t h a t w il l h e l p y o u


Easily generate your own CSS
style sheet code/definitions in
just minutes with this free code
generator. There are also
numerous helpful articles on
CSS properties, tips and tricks

http://www.css-generator.com/




 Last updated: 8-Jul-2010          © Digital Boomerang 2010   109
T o o l s t h a t w il l h e l p y o u

                      Spoon Browser Sandbox
                      Run popular browsers without installs. Helps to easily test
                      compatibility of your CSS and functionality on different
                      browsers.
                      http://spoon.net/browsers/




 Last updated: 8-Jul-2010               © Digital Boomerang 2010                    110
T o o l s t h a t w il l h e l p y o u

                      Notepad ++
                      Notepad++ is a free source code editor that supports
                      several languages (including HTML, XML, Javascript, PHP,
                      CSS).
                      http://notepad-plus-plus.org/




 Last updated: 8-Jul-2010               © Digital Boomerang 2010                 111

More Related Content

Recently uploaded

Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountPuma Security, LLC
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slidevu2urc
 
Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Paola De la Torre
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationRidwan Fadjar
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsEnterprise Knowledge
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Alan Dix
 
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityPrincipled Technologies
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfEnterprise Knowledge
 
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...HostedbyConfluent
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slidespraypatel2
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsMaria Levchenko
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Miguel Araújo
 
Google AI Hackathon: LLM based Evaluator for RAG
Google AI Hackathon: LLM based Evaluator for RAGGoogle AI Hackathon: LLM based Evaluator for RAG
Google AI Hackathon: LLM based Evaluator for RAGSujit Pal
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...shyamraj55
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonetsnaman860154
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxMalak Abu Hammad
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 3652toLead Limited
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking MenDelhi Call girls
 
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | DelhiFULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhisoniya singh
 

Recently uploaded (20)

Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 Presentation
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
 
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
 
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slides
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
Google AI Hackathon: LLM based Evaluator for RAG
Google AI Hackathon: LLM based Evaluator for RAGGoogle AI Hackathon: LLM based Evaluator for RAG
Google AI Hackathon: LLM based Evaluator for RAG
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | DelhiFULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
 

Featured

2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by HubspotMarius Sescu
 
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTExpeed Software
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsPixeldarts
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthThinkNow
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfmarketingartwork
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024Neil Kimberley
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)contently
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024Albert Qian
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsKurio // The Social Media Age(ncy)
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Search Engine Journal
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summarySpeakerHub
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next Tessa Mero
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentLily Ray
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best PracticesVit Horky
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project managementMindGenius
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...RachelPearson36
 

Featured (20)

2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot
 
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 

Elaine poh & colin ho wicked word press theming techniques

  • 1.
  • 2. Colin Ho Elaine Poh colin@digitalboomerang.com.sg elaine@digitalboomerang.com.sg
  • 5.
  • 8.
  • 10. Hood Ornaments Source: http://www.stuartxchange.org/Jeepney.html
  • 11. User Feedback Mechanism Source: http://pinoyfunnypictures.blogspot.com/2008_10_01_archive.html
  • 12. Amphibious Mode Source: http://newshopper.sulekha.com/
  • 13. Leather Seats and LCD Monitors Source: http://paulding.blogspot.com/2008/11/amazing-high-
  • 16. Source: http://sulit.com.ph/, http://blog.asiahotels.com/boracay-guide/, http://www.pvegetah.com/2009/04/electric-vehicle-in-other-place-of-the-philippines/
  • 17.
  • 18.
  • 19.
  • 20.
  • 21.
  • 22. W h a t w e w il l b e g o in g c o v e r in g 1. Set up a custom homepage. Create multiple post queries. 5. Display thumbnails for posts. 7. Add labels with Tags. 9. Stylise individual posts /pages. Last updated: 8-Jul-2010 © Digital Boomerang 2010 22
  • 24. T y p ic a l W o r d p r e s s Th e m e header.php index.php sidebar.php List latest posts footer.php Last updated: 8-Jul-2010 © Digital Boomerang 2010 24
  • 25. Homepage List latest posts Last updated: 8-Jul-2010 © Digital Boomerang 2010 25
  • 26. Category List latest posts Last updated: 8-Jul-2010 © Digital Boomerang 2010 26
  • 27. Tag Archive List latest posts Last updated: 8-Jul-2010 © Digital Boomerang 2010 27
  • 28. O n t h e h o m e p a g e ... header.php Displays something else only on the homepage index.php sidebar.php List latest posts footer.php Last updated: 8-Jul-2010 © Digital Boomerang 2010 28
  • 29. Header.php Display sticky post Display a list of most viewed posts Display latest posts Last updated: 8-Jul-2010 © Digital Boomerang 2010 29
  • 30. 1 Setup aC om H g ust omepae © Digital Boomerang 2010 30 © Digital Boomerang 2010
  • 31. Set up a cus to m Ho m ep ag e http://beta.challenge.gov.sg Wh a t : To load a custom homepage instead of the WP default homepage (index.php) Last updated: 8-Jul-2010 © Digital Boomerang 2010 31
  • 32. Set up a cus to m Ho m ep ag e Ho w : WordPress Hierarchy Step 1: Duplicate index.php Homepage Step 2: Rename as home.php WP will first look for the existence of this file. home.php If it finds one, WP will load this file If it doesn’t, WP will load the default index.php index.php Last updated: 8-Jul-2010 © Digital Boomerang 2010 32
  • 33. Header.php home.php Last updated: 8-Jul-2010 © Digital Boomerang 2010 33
  • 34. National Geographic Last updated: 8-Jul-2010 © Digital Boomerang 2010 34
  • 35. Chris Phelps Photography Last updated: 8-Jul-2010 © Digital Boomerang 2010 35
  • 36. Ravengraphy Last updated: 8-Jul-2010 © Digital Boomerang 2010 36
  • 37. Set up a cus to m Ho m ep ag e header.php home.php sidebar.php 1 query to display latest posts footer.php Last updated: 8-Jul-2010 © Digital Boomerang 2010 37
  • 38. MCYS SCREENSHOT Last updated: 8-Jul-2010 © Digital Boomerang 2010 38
  • 39. MCYS SCREENSHOT Last updated: 8-Jul-2010 © Digital Boomerang 2010 39
  • 40. MCYS SCREENSHOT Last updated: 8-Jul-2010 © Digital Boomerang 2010 40
  • 41. MCYS SCREENSHOT Last updated: 8-Jul-2010 © Digital Boomerang 2010 41
  • 42. Header.php Display only 1 sticky post Display a list of most viewed posts Display latest posts Last updated: 8-Jul-2010 © Digital Boomerang 2010 42
  • 43. Header.php Display only 1 sticky post Display latest posts Last updated: 8-Jul-2010 © Digital Boomerang 2010 43
  • 44. 2 Create multiple post queries © Digital Boomerang 2010 44 © Digital Boomerang 2010
  • 45. C r e a t e m u l t ip l e p o s t q u e r ie s Ho w : Step 1: Query sticky post. Paste this code in home.php. $sticky = get_option( 'sticky_posts' ); query_posts ( array( 'post__in' => $sticky 'caller_get_posts' => 1, 'posts_per_page' => 1 ) ); Step 2: Create a loop to display the sticky post. Step 3: At the end of the sticky post loop, add this: wp_reset_query(); // Reset the query Last updated: 8-Jul-2010 © Digital Boomerang 2010 45
  • 46. home.php Query sticky Start of Loop End of Loop sets query Last updated: 8-Jul-2010 © Digital Boomerang 2010 46
  • 47. Header.php Display only 1 sticky post Display latest posts Last updated: 8-Jul-2010 © Digital Boomerang 2010 47
  • 48. C r e a t e m u l t ip l e p o s t q u e r ie s Ho w : Step 1: Query 10 latest posts excluding sticky posts before the latest posts loop. query_posts(array( 'posts_per_page' => 10, 'post__not_in' =>get_option('sticky_posts') )); Last updated: 8-Jul-2010 © Digital Boomerang 2010 48
  • 49. home.php Query latest posts Last updated: 8-Jul-2010 © Digital Boomerang 2010 49
  • 50. Header.php Display only 1 sticky post Display latest posts Excluding sticky post Last updated: 8-Jul-2010 © Digital Boomerang 2010 50
  • 51. Digital Photography School Last updated: 8-Jul-2010 © Digital Boomerang 2010 51
  • 52. Patrick Hoelck Last updated: 8-Jul-2010 © Digital Boomerang 2010 52
  • 53. GOOD Magazine Last updated: 8-Jul-2010 © Digital Boomerang 2010 53
  • 54. 3 Display thumbnails for posts © Digital Boomerang 2010 54 © Digital Boomerang 2010
  • 55. D is p l a y t h u m b n a il s f o r p o s t s http://beta.challenge.gov.sg Wh a t : To display a thumbnail of a post in a listing. Last updated: 8-Jul-2010 © Digital Boomerang 2010 55
  • 56. D is p l a y t h u m b n a il s f o r posts Ho w : Step 1: Add these 2 lines of text into functions.php. add_theme_support( 'post-thumbnails' ); // Declares that your theme supports this feature. set_post_thumbnail_size( 200, 200, true ); // Sets Thumbnail size, crops to 200 by 200 Last updated: 8-Jul-2010 © Digital Boomerang 2010 56
  • 57. functions.php Last updated: 8-Jul-2010 © Digital Boomerang 2010 57
  • 58. D is p l a y t h u m b n a il s f o r posts Ho w : Step 2: Add this line of text into page.php, single.php, home.php or even index.php within the Loop. the_post_thumbnail(); // Displays default thumbnail, 200 by 200 Last updated: 8-Jul-2010 © Digital Boomerang 2010 58
  • 59. home.php Display thumbnails Last updated: 8-Jul-2010 © Digital Boomerang 2010 59
  • 60. D is p l a y t h u m b n a il s f o r posts Ho w : Step 3: Upload images for posts. Select image as “featured image” in every post. Last updated: 8-Jul-2010 © Digital Boomerang 2010 60
  • 61. D is p l a y t h u m b n a il s f o r p o s t s thumbnails http://beta.challenge.gov.sg Wh a t : To display a thumbnail of a post in a listing. thumbnails Last updated: 8-Jul-2010 © Digital Boomerang 2010 61
  • 62. D is p l a y t h u m b n a il s f o r posts Ho w : Step 1: Add this line into functions.php. add_image_size(‘big-thumbnail’, 400, 250, true ); // Set bigger thumbnails for posts Step 2: Add this line of text into page.php, single.php, home.php or even index.php within the Loop. the_post_thumbnail(‘big-thumbnail’); // Displays thumbnails 400 by 250 the_post_thumbnail(); // Displays default thumbnail, 200 by 200 Last updated: 8-Jul-2010 © Digital Boomerang 2010 62
  • 63. functions.php Add new thumbnail size Last updated: 8-Jul-2010 © Digital Boomerang 2010 63
  • 64. home.php Display bigger thumbnails Last updated: 8-Jul-2010 © Digital Boomerang 2010 64
  • 65. D is p l a y t h u m b n a il s f o r posts T ip s • Only applicable for WP2.9 and above. • Make sure an image is selected as “Featured Image” • Thumbnail sizes can’t be changed after setting. So plan ahead! Last updated: 8-Jul-2010 © Digital Boomerang 2010 65
  • 66. WPZoom PhotoBlog Last updated: 8-Jul-2010 © Digital Boomerang 2010 66
  • 67. TIME Magazine Abduzeedo Last updated: 8-Jul-2010 © Digital Boomerang 2010 67
  • 68. Bergh Last updated: 8-Jul-2010 © Digital Boomerang 2010 68
  • 69. Homepage Last updated: 8-Jul-2010 © Digital Boomerang 2010 69
  • 70. 4 Add labels with Tags © Digital Boomerang 2010 70 © Digital Boomerang 2010
  • 71. Ad d l a b e l s w it h T a g s Ho w : Step 1: Create a tag named ‘Online Exclusive’ for your post. Step 2: In the loop of home.php, enter these lines of code. if ( has_tag('online-exclusive') ) { echo "<span class='tag-excl'>Online Exclusive</span>"; } Last updated: 8-Jul-2010 © Digital Boomerang 2010 71
  • 72. home.php Display a label for each post tagged ‘Online Exclusive’. Last updated: 8-Jul-2010 © Digital Boomerang 2010 72
  • 73. Styles.css CSS style for the label, Online Exclusive Last updated: 8-Jul-2010 © Digital Boomerang 2010 73
  • 74. Ars Technica Last updated: 8-Jul-2010 © Digital Boomerang 2010 74
  • 75. 10 Steps Last updated: 8-Jul-2010 © Digital Boomerang 2010 75
  • 76. WIRED Last updated: 8-Jul-2010 © Digital Boomerang 2010 76
  • 77. Homepage Last updated: 8-Jul-2010 © Digital Boomerang 2010 77
  • 78. Category Last updated: 8-Jul-2010 © Digital Boomerang 2010 78
  • 79. 5 Stylise individual Posts / Pages © Digital Boomerang 2010 79 © Digital Boomerang 2010
  • 80. Stylise individual posts/pages Wh a t : To dynamically insert class names where applied. <?php body_class(); ?> // declared in header.php Last updated: 8-Jul-2010 © Digital Boomerang 2010 80
  • 81. Homepage <body <?php body_class(); ?> > <body class=“home blog”> Last updated: 8-Jul-2010 © Digital Boomerang 2010 81
  • 82. Category <body <?php body_class(); ?> > <body class=“archive category category-on-job”> Last updated: 8-Jul-2010 © Digital Boomerang 2010 82
  • 83. Stylise individual posts/pages .home .ico-exclusive { background:#00A8DF; .category .ico-exclusive { left:0; top:61px; background-image: height:15px; url(images/ico-excl.png); width:120px; right:0; bottom:-10px; text-align:left; height:45px; width:125px; color:#fff; } } Last updated: 8-Jul-2010 © Digital Boomerang 2010 83
  • 87. Last updated: 8-Jul-2010 © Digital Boomerang 2010 87
  • 88. Last updated: 8-Jul-2010 © Digital Boomerang 2010 88
  • 89. Last updated: 8-Jul-2010 © Digital Boomerang 2010 89
  • 90. Last updated: 8-Jul-2010 © Digital Boomerang 2010 90
  • 91. Last updated: 8-Jul-2010 © Digital Boomerang 2010 91
  • 92. Stylise individual posts/pages Wh a t : To dynamically insert class names where applied. <?php post_class(); ?> // declared in content areas Last updated: 8-Jul-2010 © Digital Boomerang 2010 92
  • 93. <div id=“post-<?php the_ID(); ?>” the <?php post_class(); ?> > <div=id“post-32” class=“category-episode-12 tag-anna”> Last updated: 8-Jul-2010 © Digital Boomerang 2010 93
  • 94. <div id=“post-<?php the_ID(); ?>” the <?php post_class(); ?> > <div=id“post-32” class=“category-episode-12 tag-hui-leng”> Last updated: 8-Jul-2010 © Digital Boomerang 2010 94
  • 102. Re c a p t h e H a c k s 1. Set up a custom homepage. Create multiple post queries. 5. Display thumbnails for posts. 7. Add labels with Tags. 9. Stylise individual posts /pages. Last updated: 8-Jul-2010 © Digital Boomerang 2010 102
  • 103. B ore y ha a a… ef ou ck wy © Digital Boomerang 2010 103 © Digital Boomerang 2010
  • 104. Wordpress in the Future... Join us on Facebook http://www.facebook.com/digitalboomerang © Digital Boomerang 2010 104 © Digital Boomerang 2010
  • 105. Questions? © Digital Boomerang 2010 105 © Digital Boomerang 2010
  • 106. T o o l s t h a t w il l h e l p y o u Firebug Provides web development tools at your fingertips while you browse. You can edit, debug, and monitor CSS, HTML, and JavaScript live in any web page. http://getfirebug.com/ Inspect and edit Tweak HTML CSS Last updated: 8-Jul-2010 © Digital Boomerang 2010 106
  • 107. T o o l s t h a t w il l h e l p y o u IE Developer Bar Provides web development tools at your fingertips while you browse FOR INTERNET EXPLORER 6 AND 7. You can edit, debug, and monitor CSS, HTML, and JavaScript live in any web page. http://fileforum.betanews.com/detail/Internet-Explorer-Developer-Toolbar Last updated: 8-Jul-2010 © Digital Boomerang 2010 107
  • 108. T o o l s t h a t w il l h e l p y o u IE Tester IETester is a free Web Browser that allows you to have the rendering and javascript engines of IE9 preview, IE8, IE7 IE 6 andIE5.5 on Windows 7, Vista and XP, as well as the installed IE in the same process.  http://www.my-debugbar.com/wiki/IETester/HomePage Last updated: 8-Jul-2010 © Digital Boomerang 2010 108
  • 109. T o o l s t h a t w il l h e l p y o u Easily generate your own CSS style sheet code/definitions in just minutes with this free code generator. There are also numerous helpful articles on CSS properties, tips and tricks http://www.css-generator.com/ Last updated: 8-Jul-2010 © Digital Boomerang 2010 109
  • 110. T o o l s t h a t w il l h e l p y o u Spoon Browser Sandbox Run popular browsers without installs. Helps to easily test compatibility of your CSS and functionality on different browsers. http://spoon.net/browsers/ Last updated: 8-Jul-2010 © Digital Boomerang 2010 110
  • 111. T o o l s t h a t w il l h e l p y o u Notepad ++ Notepad++ is a free source code editor that supports several languages (including HTML, XML, Javascript, PHP, CSS). http://notepad-plus-plus.org/ Last updated: 8-Jul-2010 © Digital Boomerang 2010 111

Editor's Notes

  1. Now I can go ahead to create something like that.
  2. X4 to explain 4 queries in tabs, 4 different loop. hao lian more
  3. X4 to explain 4 queries in tabs, 4 different loop. hao lian more
  4. X4 to explain 4 queries in tabs, 4 different loop. hao lian more
  5. By default, 1 query. Need 1 loop to display.
  6. X4 to explain 4 queries in tabs, 4 different loop. hao lian more
  7. X4 to explain 4 queries in tabs, 4 different loop. hao lian more
  8. X4 to explain 4 queries in tabs, 4 different loop. hao lian more
  9. X4 to explain 4 queries in tabs, 4 different loop. hao lian more
  10. Talk in more detail. First query to display sticky.
  11. Going to show u how to do this.
  12. Create multiple post queries
  13. First,
  14. First,
  15. X4 to explain 4 queries in tabs, 4 different loop. hao lian more
  16. X4 to explain 4 queries in tabs, 4 different loop. hao lian more
  17. X4 to explain 4 queries in tabs, 4 different loop. hao lian more
  18. Start: There are only 2 steps.
  19. Go to code to show.
  20. Go to code to show.
  21. Go to code to show.
  22. Go to code to show.
  23. Break it up.
  24. Go to code to show.
  25. Go to code to show.
  26. http://markjaquith.wordpress.com/2009/12/23/new-in-wordpress-2-9-post-thumbnail-images/
  27. X4 to explain 4 queries in tabs, 4 different loop. hao lian more
  28. X4 to explain 4 queries in tabs, 4 different loop. hao lian more
  29. Note: unique name must be one word. No spacing. For good practice, keep the Value to a consistent entry. You might have other uses for this in the future.
  30. CSS styles….screenshot
  31. So the end results will look like this.
  32. So the end results will look like this.
  33. So the end results will look like this.
  34. So the end results will look like this.
  35. So the end results will look like this.
  36. Demo Sixlives.sg
  37. Stylise individual posts /pages
  38. With css, we a But what if say for a site, there are 5 authors. And for each author, we wanted to create a different look for their posts. If You think body_class can handle this, you are wrong!
  39. Stylise individual posts /pages
  40. Recap our super charged slides. Need a closure – repeat the hacks Say what are the possibilities with the other sites. Realte the hacks to say maybe sgem Join us on fb to find out more Happy hacking!
  41. If theres time… if not ….