SlideShare una empresa de Scribd logo
1 de 36
Descargar para leer sin conexión
VARIOUS WAYS OF USING
              WordPress
Customizing


                BY: NICK LA
              www.ndesign-studio.com
Big Thanks to WordPress!




 N.Design Studio        Web Designer Wall
   ndesign-studio.com     webdesignerwall.com




 Best Web Gallery           IconDock
   bestwebgallery.com        icondock.com
Why WordPress?
• Easy to learn & use
 Good documentation and simple admin panel

• Flexible and dynamic
 Create dynamic sites with Template Tags

• SEO friendly
 Friendly URL and semantic coding

• FREE!
 Free open source + plugins and themes
Things You Should Know
 • Custom Fields
  http://codex.wordpress.org/Using_Custom_Fields


 • Conditional Tags
  http://codex.wordpress.org/Conditional_Tags


 • Query_Posts
  http://codex.wordpress.org/Template_Tags/query_posts


 • Page Template
  http://codex.wordpress.org/Pages


 • Finding Good Plugins
  http://wordpress.org/extend/plugins
How I Use WordPress:




     Blog                Gallery             Shop
                      bestwebgallery.com
webdesignerwall.com                        icondock.com
Using WordPress As




       Blog
Displaying A Custom Post Image
Custom Fields
Use custom field to display a post image




                                           Custom field
Custom Fields
Assigning custom field (Admin > Write)




                       Custom field      Image URL
Custom Fields
Outputting custom field in template file




       index.php



           <?php $postimage = get_post_meta($post->ID, 'post_image', true); ?>


           <?php if ($postimage != quot;quot;) { ?>
                 <a href=quot;<?php the_permalink() ?>quot;><img src=quot;<?php echo $postimage; ?>quot; /></a>
           <?php } ?>
Displaying A Dynamic <title> Tag
Conditional Tags
Use Conditional Tags to display a dynamic <title> tag




                                                                       header.php
            <title>
                  <?php if (is_home()) {
                        echo bloginfo('name');
                  } elseif (is_404()) {
                        echo '404 Not Found';
                  } elseif (is_category()) {
                        echo 'Category:'; wp_title('');
                  } elseif (is_search()) {
                        echo 'Search Results';
                  } elseif ( is_day() || is_month() || is_year() ) {
                        echo 'Archives:'; wp_title('');
                  } else {
                        echo wp_title('');
                  }
                  ?>
            </title>
Using WordPress As




      Gallery
Managing Posts With Custom Fields
Custom Fields
Use custom fields to display post content




                                            Thumb


                                            URL


                                              Large Image
Plugin: Custom Write Panel
Save time by using Custom Write Panel plugin to manage posts




              Custom Write Panel
              http://wordpress.org/extend/plugins/custom-write-panel/
Theme Switcher
Plugin: Theme Switcher
With Theme Switcher, visitors can pick their layout preference




                                                 Theme Switcher
                                                 http://wordpress.org/extend/plugins/theme-switcher/




                                              Large Preview
     Thumbnail                                                                      Details
Themes
Overview of template files
PHP Include
Use Conditional Tags to dynamically include template file from the “master” theme




       <?php if (is_page()) {                                                       /*
                                                                                    Theme Name: Details
             include ('./wp-content/themes/master/page.php');
                                                                                    */
       } elseif (is_404()) {
             include ('./wp-content/themes/master/404.php');
       } elseif (in_category(8)) {
             include ('./wp-content/themes/master/category-8.php');
       } elseif (is_single()) {
             include ('./wp-content/themes/master/single.php');
       } else {?>


            <?php include ('./wp-content/themes/master/header.php'); ?>
            <div>. . . display posts . . . </div>
            <?php include ('./wp-content/themes/master/sidebar.php'); ?>
            <?php include ('./wp-content/themes/master/footer.php'); ?>


       <?php }?>
Using WordPress As




     Shop / Blog
Displaying The 5 Latest Posts
Query_Posts
Use query_posts to display the 5 latest posts




                                                Display 5 latest posts
Query_Posts
Sample code: query_posts and the loop




                                                                        index.php
          <?php query_posts('showposts=5'); ?>


          <?php if (have_posts()) : ?>
          <?php while (have_posts()) : the_post(); $loopcounter++; ?>
                <?php if ($loopcounter <= 1) { ?>
                <div> first post content </div>


                <ul class=quot;recent-postquot;>
                <?php } else { ?>
                        <li> last 4 post links </li>
                <? } ?>
          <?php endwhile;?>
                </ul>
          <?php else : ?>
                ...code...
          <?php endif; ?>
Conditional Tags
If the post is in the free icon category, display the post rating plugin




                                                          <?php if (in_category('28')) { ?>
                                                                 <p>credits</p>
                                                                 <?php if(function_exists('the_ratings')) { the_ratings(); } ?>
                                                          <?php } else { ?>
                                                                 <p>regular post data</p>
                                                          <? } ?>
Managing Free Icon Posts With Custom Fields
Custom Fields
Custom fields on the free icon page



                                      WP PostRatings
                                      http://wordpress.org/extend/plugins/wp-postratings/
             credits


     description



   download url




           preview
Plugin: Flutter
Use Flutter to manage the free icon posts




   Flutter
   http://flutter.freshout.us
Getting Rid Of The Category Base
Free Icon Template
Creating a Page template for the free icon page




                                              <?php
                                              /*
                                              Template Name: Template - Free Icons
                                              */
                                              ?>

 template-free-icon.php                       <?php get_header(); ?>


                                              <?php $page_num = $paged;
                                              if ($pagenum='') $pagenum =1;
                                              query_posts('cat=28&posts_per_page=-1&paged='.$page_num); ?>


                                              <?php if (have_posts()) : ?>
                                              <?php while (have_posts()) : the_post(); ?>
                                                   <div> display post here </div>
                                              <? endwhile;endif; ?>


                                              <?php get_sidebar(); ?>
                                              <?php get_footer(); ?>
Free Icon Template
Create a blank page (Free Icons) and assign the template




                                                           blank page
                                                           (no content)




                                                           Page template
Creating A Shop With WP ECommerce Plugin
Download WP eCommerce
http://www.instinct.co.nz/e-commerce/
Inspiration
45Royale Inc.
http://www.45royale.com



Creative Depart
http://www.creativedepart.com



Typographica
http://new.typographica.org



FlickOut
http://flickout.com



Jeff Finley
http://www.jefffinley.org
Thank You

Más contenido relacionado

La actualidad más candente

Building Pluggable Web Applications using Django
Building Pluggable Web Applications using DjangoBuilding Pluggable Web Applications using Django
Building Pluggable Web Applications using DjangoLakshman Prasad
 
WordCamp ABQ 2013: Making the leap from Designer to Designer/Developer
WordCamp ABQ 2013: Making the leap from Designer to Designer/DeveloperWordCamp ABQ 2013: Making the leap from Designer to Designer/Developer
WordCamp ABQ 2013: Making the leap from Designer to Designer/Developermy easel
 
Wordcamp abq cf-cpt
Wordcamp abq cf-cptWordcamp abq cf-cpt
Wordcamp abq cf-cptmy easel
 
Introduction to WordPress Theme Development
Introduction to WordPress Theme DevelopmentIntroduction to WordPress Theme Development
Introduction to WordPress Theme DevelopmentSitdhibong Laokok
 
Intro to WordPress theme development
Intro to WordPress theme developmentIntro to WordPress theme development
Intro to WordPress theme developmentThad Allender
 
Creating Themes
Creating ThemesCreating Themes
Creating ThemesDaisyOlsen
 
HTML 5 Step By Step - Ebook
HTML 5 Step By Step - EbookHTML 5 Step By Step - Ebook
HTML 5 Step By Step - EbookScottperrone
 
Jumpstart Django
Jumpstart DjangoJumpstart Django
Jumpstart Djangoryates
 
Django app deployment in Azure By Saurabh Agarwal
Django app deployment in Azure By Saurabh AgarwalDjango app deployment in Azure By Saurabh Agarwal
Django app deployment in Azure By Saurabh Agarwalratneshsinghparihar
 
Drupal 8 templating with twig
Drupal 8 templating with twigDrupal 8 templating with twig
Drupal 8 templating with twigTaras Omelianenko
 
Your Business. Your Language. Your Code - dpc13
Your Business. Your Language. Your Code - dpc13Your Business. Your Language. Your Code - dpc13
Your Business. Your Language. Your Code - dpc13Stephan Hochdörfer
 
The Django Web Application Framework 2
The Django Web Application Framework 2The Django Web Application Framework 2
The Django Web Application Framework 2fishwarter
 
Radoslav Stankov - Handling GraphQL with React and Apollo
Radoslav Stankov - Handling GraphQL with React and ApolloRadoslav Stankov - Handling GraphQL with React and Apollo
Radoslav Stankov - Handling GraphQL with React and ApolloFDConf
 
Twig for Drupal 8 and PHP | Presented at OC Drupal
Twig for Drupal 8 and PHP | Presented at OC DrupalTwig for Drupal 8 and PHP | Presented at OC Drupal
Twig for Drupal 8 and PHP | Presented at OC Drupalwebbywe
 
Behaviour Driven Development con Behat & Drupal
Behaviour Driven Development con Behat & DrupalBehaviour Driven Development con Behat & Drupal
Behaviour Driven Development con Behat & Drupalsparkfabrik
 
Building Content Types with Dexterity
Building Content Types with DexterityBuilding Content Types with Dexterity
Building Content Types with DexterityDavid Glick
 

La actualidad más candente (20)

Building Pluggable Web Applications using Django
Building Pluggable Web Applications using DjangoBuilding Pluggable Web Applications using Django
Building Pluggable Web Applications using Django
 
WordCamp ABQ 2013: Making the leap from Designer to Designer/Developer
WordCamp ABQ 2013: Making the leap from Designer to Designer/DeveloperWordCamp ABQ 2013: Making the leap from Designer to Designer/Developer
WordCamp ABQ 2013: Making the leap from Designer to Designer/Developer
 
Wordcamp abq cf-cpt
Wordcamp abq cf-cptWordcamp abq cf-cpt
Wordcamp abq cf-cpt
 
Introduction to WordPress Theme Development
Introduction to WordPress Theme DevelopmentIntroduction to WordPress Theme Development
Introduction to WordPress Theme Development
 
Intro to WordPress theme development
Intro to WordPress theme developmentIntro to WordPress theme development
Intro to WordPress theme development
 
Creating Themes
Creating ThemesCreating Themes
Creating Themes
 
HTML 5 Step By Step - Ebook
HTML 5 Step By Step - EbookHTML 5 Step By Step - Ebook
HTML 5 Step By Step - Ebook
 
Jumpstart Django
Jumpstart DjangoJumpstart Django
Jumpstart Django
 
Django app deployment in Azure By Saurabh Agarwal
Django app deployment in Azure By Saurabh AgarwalDjango app deployment in Azure By Saurabh Agarwal
Django app deployment in Azure By Saurabh Agarwal
 
Drupal 8 templating with twig
Drupal 8 templating with twigDrupal 8 templating with twig
Drupal 8 templating with twig
 
Your Business. Your Language. Your Code - dpc13
Your Business. Your Language. Your Code - dpc13Your Business. Your Language. Your Code - dpc13
Your Business. Your Language. Your Code - dpc13
 
The Django Web Application Framework 2
The Django Web Application Framework 2The Django Web Application Framework 2
The Django Web Application Framework 2
 
Radoslav Stankov - Handling GraphQL with React and Apollo
Radoslav Stankov - Handling GraphQL with React and ApolloRadoslav Stankov - Handling GraphQL with React and Apollo
Radoslav Stankov - Handling GraphQL with React and Apollo
 
Twig for Drupal 8 and PHP | Presented at OC Drupal
Twig for Drupal 8 and PHP | Presented at OC DrupalTwig for Drupal 8 and PHP | Presented at OC Drupal
Twig for Drupal 8 and PHP | Presented at OC Drupal
 
Behaviour Driven Development con Behat & Drupal
Behaviour Driven Development con Behat & DrupalBehaviour Driven Development con Behat & Drupal
Behaviour Driven Development con Behat & Drupal
 
JSP Custom Tags
JSP Custom TagsJSP Custom Tags
JSP Custom Tags
 
A Phing fairy tale - ConFoo13
A Phing fairy tale - ConFoo13A Phing fairy tale - ConFoo13
A Phing fairy tale - ConFoo13
 
Css, xhtml, javascript
Css, xhtml, javascriptCss, xhtml, javascript
Css, xhtml, javascript
 
Building Content Types with Dexterity
Building Content Types with DexterityBuilding Content Types with Dexterity
Building Content Types with Dexterity
 
EPiServer Web Parts
EPiServer Web PartsEPiServer Web Parts
EPiServer Web Parts
 

Destacado

Decentralized Social Networks - WebVisions 2009
Decentralized Social Networks - WebVisions 2009Decentralized Social Networks - WebVisions 2009
Decentralized Social Networks - WebVisions 2009David Recordon
 
Beyond Cookies, Persistent Storage For Web Applications Web Directions North ...
Beyond Cookies, Persistent Storage For Web Applications Web Directions North ...Beyond Cookies, Persistent Storage For Web Applications Web Directions North ...
Beyond Cookies, Persistent Storage For Web Applications Web Directions North ...BradNeuberg
 
Frontend 2010 beautiful design is all about the details
Frontend 2010   beautiful design is all about the detailsFrontend 2010   beautiful design is all about the details
Frontend 2010 beautiful design is all about the detailsNick La
 
SXSW 2010 Interactive. Insights and Trends for Business.
SXSW 2010 Interactive. Insights and Trends for Business.SXSW 2010 Interactive. Insights and Trends for Business.
SXSW 2010 Interactive. Insights and Trends for Business.Andy Hadfield
 
Highly Maintainable, Efficient, and Optimized CSS
Highly Maintainable, Efficient, and Optimized CSSHighly Maintainable, Efficient, and Optimized CSS
Highly Maintainable, Efficient, and Optimized CSSZoe Gillenwater
 
Enjoying the full stack - Frontend 2010
Enjoying the full stack - Frontend 2010Enjoying the full stack - Frontend 2010
Enjoying the full stack - Frontend 2010Christian Heilmann
 
Mastering CSS3 Selectors
Mastering CSS3 SelectorsMastering CSS3 Selectors
Mastering CSS3 SelectorsRachel Andrew
 
Elegant Web Typography
Elegant Web TypographyElegant Web Typography
Elegant Web Typographyjeff_croft
 
The Seven Commandments Of User Experience
The Seven Commandments Of User ExperienceThe Seven Commandments Of User Experience
The Seven Commandments Of User ExperienceNick Finck
 

Destacado (12)

Decentralized Social Networks - WebVisions 2009
Decentralized Social Networks - WebVisions 2009Decentralized Social Networks - WebVisions 2009
Decentralized Social Networks - WebVisions 2009
 
Beyond Cookies, Persistent Storage For Web Applications Web Directions North ...
Beyond Cookies, Persistent Storage For Web Applications Web Directions North ...Beyond Cookies, Persistent Storage For Web Applications Web Directions North ...
Beyond Cookies, Persistent Storage For Web Applications Web Directions North ...
 
Frontend 2010 beautiful design is all about the details
Frontend 2010   beautiful design is all about the detailsFrontend 2010   beautiful design is all about the details
Frontend 2010 beautiful design is all about the details
 
SXSW 2010 Interactive. Insights and Trends for Business.
SXSW 2010 Interactive. Insights and Trends for Business.SXSW 2010 Interactive. Insights and Trends for Business.
SXSW 2010 Interactive. Insights and Trends for Business.
 
Jina Bolton
Jina BoltonJina Bolton
Jina Bolton
 
Highly Maintainable, Efficient, and Optimized CSS
Highly Maintainable, Efficient, and Optimized CSSHighly Maintainable, Efficient, and Optimized CSS
Highly Maintainable, Efficient, and Optimized CSS
 
Enjoying the full stack - Frontend 2010
Enjoying the full stack - Frontend 2010Enjoying the full stack - Frontend 2010
Enjoying the full stack - Frontend 2010
 
Mastering CSS3 Selectors
Mastering CSS3 SelectorsMastering CSS3 Selectors
Mastering CSS3 Selectors
 
Elegant Web Typography
Elegant Web TypographyElegant Web Typography
Elegant Web Typography
 
The Seven Commandments Of User Experience
The Seven Commandments Of User ExperienceThe Seven Commandments Of User Experience
The Seven Commandments Of User Experience
 
Red Dirt JS
Red Dirt JSRed Dirt JS
Red Dirt JS
 
Think Vitamin CSS
Think Vitamin CSSThink Vitamin CSS
Think Vitamin CSS
 

Similar a Various Ways of Using WordPress

WordPress Development Confoo 2010
WordPress Development Confoo 2010WordPress Development Confoo 2010
WordPress Development Confoo 2010Brendan Sera-Shriar
 
WordPress Standardized Loop API
WordPress Standardized Loop APIWordPress Standardized Loop API
WordPress Standardized Loop APIChris Jean
 
PSD to WordPress
PSD to WordPressPSD to WordPress
PSD to WordPressNile Flores
 
Childthemes ottawa-word camp-1919
Childthemes ottawa-word camp-1919Childthemes ottawa-word camp-1919
Childthemes ottawa-word camp-1919Paul Bearne
 
Word press templates
Word press templatesWord press templates
Word press templatesDan Phiffer
 
The Way to Theme Enlightenment
The Way to Theme EnlightenmentThe Way to Theme Enlightenment
The Way to Theme EnlightenmentAmanda Giles
 
Use Symfony2 components inside WordPress
Use Symfony2 components inside WordPress Use Symfony2 components inside WordPress
Use Symfony2 components inside WordPress Maurizio Pelizzone
 
WordPress Structure and Best Practices
WordPress Structure and Best PracticesWordPress Structure and Best Practices
WordPress Structure and Best Practicesmarkparolisi
 
WordPress theme development from scratch : ICT MeetUp 2013 Nepal
WordPress theme development from scratch : ICT MeetUp 2013 NepalWordPress theme development from scratch : ICT MeetUp 2013 Nepal
WordPress theme development from scratch : ICT MeetUp 2013 NepalChandra Prakash Thapa
 
Using Geeklog as a Web Application Framework
Using Geeklog as a Web Application FrameworkUsing Geeklog as a Web Application Framework
Using Geeklog as a Web Application FrameworkDirk Haun
 
Drupal 7 Theming - what's new
Drupal 7 Theming - what's newDrupal 7 Theming - what's new
Drupal 7 Theming - what's newMarek Sotak
 
WordPress Theme Design - Rich Media Institute Workshop
WordPress Theme Design - Rich Media Institute WorkshopWordPress Theme Design - Rich Media Institute Workshop
WordPress Theme Design - Rich Media Institute WorkshopBrendan Sera-Shriar
 
Widgets: Making Your Site Great and Letting Others Help - WordCamp Victoria
Widgets: Making Your Site Great and Letting Others Help - WordCamp VictoriaWidgets: Making Your Site Great and Letting Others Help - WordCamp Victoria
Widgets: Making Your Site Great and Letting Others Help - WordCamp VictoriaJeff Richards
 
The Django Web Application Framework 2
The Django Web Application Framework 2The Django Web Application Framework 2
The Django Web Application Framework 2fishwarter
 
The Django Web Application Framework 2
The Django Web Application Framework 2The Django Web Application Framework 2
The Django Web Application Framework 2fishwarter
 
The Way to Theme Enlightenment 2017
The Way to Theme Enlightenment 2017The Way to Theme Enlightenment 2017
The Way to Theme Enlightenment 2017Amanda Giles
 
Intro To Mvc Development In Php
Intro To Mvc Development In PhpIntro To Mvc Development In Php
Intro To Mvc Development In Phpfunkatron
 

Similar a Various Ways of Using WordPress (20)

WordPress Development Confoo 2010
WordPress Development Confoo 2010WordPress Development Confoo 2010
WordPress Development Confoo 2010
 
WordPress Standardized Loop API
WordPress Standardized Loop APIWordPress Standardized Loop API
WordPress Standardized Loop API
 
PSD to WordPress
PSD to WordPressPSD to WordPress
PSD to WordPress
 
Childthemes ottawa-word camp-1919
Childthemes ottawa-word camp-1919Childthemes ottawa-word camp-1919
Childthemes ottawa-word camp-1919
 
20110820 header new style
20110820 header new style20110820 header new style
20110820 header new style
 
Word press templates
Word press templatesWord press templates
Word press templates
 
The Way to Theme Enlightenment
The Way to Theme EnlightenmentThe Way to Theme Enlightenment
The Way to Theme Enlightenment
 
Theming 101
Theming 101Theming 101
Theming 101
 
Use Symfony2 components inside WordPress
Use Symfony2 components inside WordPress Use Symfony2 components inside WordPress
Use Symfony2 components inside WordPress
 
Seven deadly theming sins
Seven deadly theming sinsSeven deadly theming sins
Seven deadly theming sins
 
WordPress Structure and Best Practices
WordPress Structure and Best PracticesWordPress Structure and Best Practices
WordPress Structure and Best Practices
 
WordPress theme development from scratch : ICT MeetUp 2013 Nepal
WordPress theme development from scratch : ICT MeetUp 2013 NepalWordPress theme development from scratch : ICT MeetUp 2013 Nepal
WordPress theme development from scratch : ICT MeetUp 2013 Nepal
 
Using Geeklog as a Web Application Framework
Using Geeklog as a Web Application FrameworkUsing Geeklog as a Web Application Framework
Using Geeklog as a Web Application Framework
 
Drupal 7 Theming - what's new
Drupal 7 Theming - what's newDrupal 7 Theming - what's new
Drupal 7 Theming - what's new
 
WordPress Theme Design - Rich Media Institute Workshop
WordPress Theme Design - Rich Media Institute WorkshopWordPress Theme Design - Rich Media Institute Workshop
WordPress Theme Design - Rich Media Institute Workshop
 
Widgets: Making Your Site Great and Letting Others Help - WordCamp Victoria
Widgets: Making Your Site Great and Letting Others Help - WordCamp VictoriaWidgets: Making Your Site Great and Letting Others Help - WordCamp Victoria
Widgets: Making Your Site Great and Letting Others Help - WordCamp Victoria
 
The Django Web Application Framework 2
The Django Web Application Framework 2The Django Web Application Framework 2
The Django Web Application Framework 2
 
The Django Web Application Framework 2
The Django Web Application Framework 2The Django Web Application Framework 2
The Django Web Application Framework 2
 
The Way to Theme Enlightenment 2017
The Way to Theme Enlightenment 2017The Way to Theme Enlightenment 2017
The Way to Theme Enlightenment 2017
 
Intro To Mvc Development In Php
Intro To Mvc Development In PhpIntro To Mvc Development In Php
Intro To Mvc Development In Php
 

Último

Redefining Globalization, urbanisation and Localisation
Redefining Globalization, urbanisation and LocalisationRedefining Globalization, urbanisation and Localisation
Redefining Globalization, urbanisation and LocalisationJIT KUMAR GUPTA
 
Dos And Dont's Of Logo Design For 2024..
Dos And Dont's Of Logo Design For 2024..Dos And Dont's Of Logo Design For 2024..
Dos And Dont's Of Logo Design For 2024..GB Logo Design
 
Abdulaziz Tariq Abdulaziz Mustafa CV 2024
Abdulaziz Tariq Abdulaziz Mustafa CV 2024Abdulaziz Tariq Abdulaziz Mustafa CV 2024
Abdulaziz Tariq Abdulaziz Mustafa CV 2024Abdulaziz Mustafa
 
Heidi Livengood's Professional CADD Portfolio
Heidi Livengood's Professional CADD PortfolioHeidi Livengood's Professional CADD Portfolio
Heidi Livengood's Professional CADD PortfolioHeidiLivengood
 
FW25-26 Fashion Key Items Trend Book Peclers Paris
FW25-26 Fashion Key Items Trend Book Peclers ParisFW25-26 Fashion Key Items Trend Book Peclers Paris
FW25-26 Fashion Key Items Trend Book Peclers ParisPeclers Paris
 
spColumn-Manual design column by spcolumn software.pdf
spColumn-Manual design column by spcolumn software.pdfspColumn-Manual design column by spcolumn software.pdf
spColumn-Manual design column by spcolumn software.pdfChan Thorn
 
Claire's designing portfolio presentation
Claire's designing portfolio presentationClaire's designing portfolio presentation
Claire's designing portfolio presentationssuser8fae18
 
Recycled Modular Low Cost Construction .pdf
Recycled Modular Low Cost Construction .pdfRecycled Modular Low Cost Construction .pdf
Recycled Modular Low Cost Construction .pdfjeffreycarroll14
 
Heuristic Evaluation of System & Application
Heuristic Evaluation of System & ApplicationHeuristic Evaluation of System & Application
Heuristic Evaluation of System & ApplicationJaime Brown
 
Week of Action 2022_EIT Climate-KIC_Headers
Week of Action 2022_EIT Climate-KIC_HeadersWeek of Action 2022_EIT Climate-KIC_Headers
Week of Action 2022_EIT Climate-KIC_Headersekinlvnt
 
Design lessons from Singapore | Volume 3
Design lessons from Singapore | Volume 3Design lessons from Singapore | Volume 3
Design lessons from Singapore | Volume 3Remy Rey De Barros
 
Design Portofolios - Licensed Architect / BIM Specialist
Design Portofolios - Licensed Architect / BIM SpecialistDesign Portofolios - Licensed Architect / BIM Specialist
Design Portofolios - Licensed Architect / BIM SpecialistYudistira
 
一比一原版格林威治大学毕业证成绩单如何办理
一比一原版格林威治大学毕业证成绩单如何办理一比一原版格林威治大学毕业证成绩单如何办理
一比一原版格林威治大学毕业证成绩单如何办理cyebo
 
一比一原版谢菲尔德大学毕业证成绩单如何办理
一比一原版谢菲尔德大学毕业证成绩单如何办理一比一原版谢菲尔德大学毕业证成绩单如何办理
一比一原版谢菲尔德大学毕业证成绩单如何办理cyebo
 
The Impact of Artificial Intelligence on Modern Healthcare.pptx
The Impact of Artificial Intelligence on Modern Healthcare.pptxThe Impact of Artificial Intelligence on Modern Healthcare.pptx
The Impact of Artificial Intelligence on Modern Healthcare.pptxDoraemon495609
 
iF_Design_Trend_Report_twentytwenrythree
iF_Design_Trend_Report_twentytwenrythreeiF_Design_Trend_Report_twentytwenrythree
iF_Design_Trend_Report_twentytwenrythreeCarlgaming1
 
BIT Khushi gandhi project.pdf graphic design
BIT Khushi gandhi project.pdf graphic designBIT Khushi gandhi project.pdf graphic design
BIT Khushi gandhi project.pdf graphic designKhushiGandhi15
 
NO1 Popular kala jadu karne wale ka contact number kala jadu karne wale baba ...
NO1 Popular kala jadu karne wale ka contact number kala jadu karne wale baba ...NO1 Popular kala jadu karne wale ka contact number kala jadu karne wale baba ...
NO1 Popular kala jadu karne wale ka contact number kala jadu karne wale baba ...Amil baba
 
Spring 2024 wkrm_Enhancing Campus Mobility.pdf
Spring 2024 wkrm_Enhancing Campus Mobility.pdfSpring 2024 wkrm_Enhancing Campus Mobility.pdf
Spring 2024 wkrm_Enhancing Campus Mobility.pdfJon Freach
 
Bit Dhrumi shah Graphic Designer portfolio
Bit Dhrumi shah Graphic Designer portfolioBit Dhrumi shah Graphic Designer portfolio
Bit Dhrumi shah Graphic Designer portfoliodhrumibshah13
 

Último (20)

Redefining Globalization, urbanisation and Localisation
Redefining Globalization, urbanisation and LocalisationRedefining Globalization, urbanisation and Localisation
Redefining Globalization, urbanisation and Localisation
 
Dos And Dont's Of Logo Design For 2024..
Dos And Dont's Of Logo Design For 2024..Dos And Dont's Of Logo Design For 2024..
Dos And Dont's Of Logo Design For 2024..
 
Abdulaziz Tariq Abdulaziz Mustafa CV 2024
Abdulaziz Tariq Abdulaziz Mustafa CV 2024Abdulaziz Tariq Abdulaziz Mustafa CV 2024
Abdulaziz Tariq Abdulaziz Mustafa CV 2024
 
Heidi Livengood's Professional CADD Portfolio
Heidi Livengood's Professional CADD PortfolioHeidi Livengood's Professional CADD Portfolio
Heidi Livengood's Professional CADD Portfolio
 
FW25-26 Fashion Key Items Trend Book Peclers Paris
FW25-26 Fashion Key Items Trend Book Peclers ParisFW25-26 Fashion Key Items Trend Book Peclers Paris
FW25-26 Fashion Key Items Trend Book Peclers Paris
 
spColumn-Manual design column by spcolumn software.pdf
spColumn-Manual design column by spcolumn software.pdfspColumn-Manual design column by spcolumn software.pdf
spColumn-Manual design column by spcolumn software.pdf
 
Claire's designing portfolio presentation
Claire's designing portfolio presentationClaire's designing portfolio presentation
Claire's designing portfolio presentation
 
Recycled Modular Low Cost Construction .pdf
Recycled Modular Low Cost Construction .pdfRecycled Modular Low Cost Construction .pdf
Recycled Modular Low Cost Construction .pdf
 
Heuristic Evaluation of System & Application
Heuristic Evaluation of System & ApplicationHeuristic Evaluation of System & Application
Heuristic Evaluation of System & Application
 
Week of Action 2022_EIT Climate-KIC_Headers
Week of Action 2022_EIT Climate-KIC_HeadersWeek of Action 2022_EIT Climate-KIC_Headers
Week of Action 2022_EIT Climate-KIC_Headers
 
Design lessons from Singapore | Volume 3
Design lessons from Singapore | Volume 3Design lessons from Singapore | Volume 3
Design lessons from Singapore | Volume 3
 
Design Portofolios - Licensed Architect / BIM Specialist
Design Portofolios - Licensed Architect / BIM SpecialistDesign Portofolios - Licensed Architect / BIM Specialist
Design Portofolios - Licensed Architect / BIM Specialist
 
一比一原版格林威治大学毕业证成绩单如何办理
一比一原版格林威治大学毕业证成绩单如何办理一比一原版格林威治大学毕业证成绩单如何办理
一比一原版格林威治大学毕业证成绩单如何办理
 
一比一原版谢菲尔德大学毕业证成绩单如何办理
一比一原版谢菲尔德大学毕业证成绩单如何办理一比一原版谢菲尔德大学毕业证成绩单如何办理
一比一原版谢菲尔德大学毕业证成绩单如何办理
 
The Impact of Artificial Intelligence on Modern Healthcare.pptx
The Impact of Artificial Intelligence on Modern Healthcare.pptxThe Impact of Artificial Intelligence on Modern Healthcare.pptx
The Impact of Artificial Intelligence on Modern Healthcare.pptx
 
iF_Design_Trend_Report_twentytwenrythree
iF_Design_Trend_Report_twentytwenrythreeiF_Design_Trend_Report_twentytwenrythree
iF_Design_Trend_Report_twentytwenrythree
 
BIT Khushi gandhi project.pdf graphic design
BIT Khushi gandhi project.pdf graphic designBIT Khushi gandhi project.pdf graphic design
BIT Khushi gandhi project.pdf graphic design
 
NO1 Popular kala jadu karne wale ka contact number kala jadu karne wale baba ...
NO1 Popular kala jadu karne wale ka contact number kala jadu karne wale baba ...NO1 Popular kala jadu karne wale ka contact number kala jadu karne wale baba ...
NO1 Popular kala jadu karne wale ka contact number kala jadu karne wale baba ...
 
Spring 2024 wkrm_Enhancing Campus Mobility.pdf
Spring 2024 wkrm_Enhancing Campus Mobility.pdfSpring 2024 wkrm_Enhancing Campus Mobility.pdf
Spring 2024 wkrm_Enhancing Campus Mobility.pdf
 
Bit Dhrumi shah Graphic Designer portfolio
Bit Dhrumi shah Graphic Designer portfolioBit Dhrumi shah Graphic Designer portfolio
Bit Dhrumi shah Graphic Designer portfolio
 

Various Ways of Using WordPress

  • 1. VARIOUS WAYS OF USING WordPress Customizing BY: NICK LA www.ndesign-studio.com
  • 2. Big Thanks to WordPress! N.Design Studio Web Designer Wall ndesign-studio.com webdesignerwall.com Best Web Gallery IconDock bestwebgallery.com icondock.com
  • 3. Why WordPress? • Easy to learn & use Good documentation and simple admin panel • Flexible and dynamic Create dynamic sites with Template Tags • SEO friendly Friendly URL and semantic coding • FREE! Free open source + plugins and themes
  • 4. Things You Should Know • Custom Fields http://codex.wordpress.org/Using_Custom_Fields • Conditional Tags http://codex.wordpress.org/Conditional_Tags • Query_Posts http://codex.wordpress.org/Template_Tags/query_posts • Page Template http://codex.wordpress.org/Pages • Finding Good Plugins http://wordpress.org/extend/plugins
  • 5. How I Use WordPress: Blog Gallery Shop bestwebgallery.com webdesignerwall.com icondock.com
  • 7. Displaying A Custom Post Image
  • 8. Custom Fields Use custom field to display a post image Custom field
  • 9. Custom Fields Assigning custom field (Admin > Write) Custom field Image URL
  • 10. Custom Fields Outputting custom field in template file index.php <?php $postimage = get_post_meta($post->ID, 'post_image', true); ?> <?php if ($postimage != quot;quot;) { ?> <a href=quot;<?php the_permalink() ?>quot;><img src=quot;<?php echo $postimage; ?>quot; /></a> <?php } ?>
  • 11. Displaying A Dynamic <title> Tag
  • 12. Conditional Tags Use Conditional Tags to display a dynamic <title> tag header.php <title> <?php if (is_home()) { echo bloginfo('name'); } elseif (is_404()) { echo '404 Not Found'; } elseif (is_category()) { echo 'Category:'; wp_title(''); } elseif (is_search()) { echo 'Search Results'; } elseif ( is_day() || is_month() || is_year() ) { echo 'Archives:'; wp_title(''); } else { echo wp_title(''); } ?> </title>
  • 14. Managing Posts With Custom Fields
  • 15. Custom Fields Use custom fields to display post content Thumb URL Large Image
  • 16. Plugin: Custom Write Panel Save time by using Custom Write Panel plugin to manage posts Custom Write Panel http://wordpress.org/extend/plugins/custom-write-panel/
  • 18. Plugin: Theme Switcher With Theme Switcher, visitors can pick their layout preference Theme Switcher http://wordpress.org/extend/plugins/theme-switcher/ Large Preview Thumbnail Details
  • 20. PHP Include Use Conditional Tags to dynamically include template file from the “master” theme <?php if (is_page()) { /* Theme Name: Details include ('./wp-content/themes/master/page.php'); */ } elseif (is_404()) { include ('./wp-content/themes/master/404.php'); } elseif (in_category(8)) { include ('./wp-content/themes/master/category-8.php'); } elseif (is_single()) { include ('./wp-content/themes/master/single.php'); } else {?> <?php include ('./wp-content/themes/master/header.php'); ?> <div>. . . display posts . . . </div> <?php include ('./wp-content/themes/master/sidebar.php'); ?> <?php include ('./wp-content/themes/master/footer.php'); ?> <?php }?>
  • 21. Using WordPress As Shop / Blog
  • 22. Displaying The 5 Latest Posts
  • 23. Query_Posts Use query_posts to display the 5 latest posts Display 5 latest posts
  • 24. Query_Posts Sample code: query_posts and the loop index.php <?php query_posts('showposts=5'); ?> <?php if (have_posts()) : ?> <?php while (have_posts()) : the_post(); $loopcounter++; ?> <?php if ($loopcounter <= 1) { ?> <div> first post content </div> <ul class=quot;recent-postquot;> <?php } else { ?> <li> last 4 post links </li> <? } ?> <?php endwhile;?> </ul> <?php else : ?> ...code... <?php endif; ?>
  • 25. Conditional Tags If the post is in the free icon category, display the post rating plugin <?php if (in_category('28')) { ?> <p>credits</p> <?php if(function_exists('the_ratings')) { the_ratings(); } ?> <?php } else { ?> <p>regular post data</p> <? } ?>
  • 26. Managing Free Icon Posts With Custom Fields
  • 27. Custom Fields Custom fields on the free icon page WP PostRatings http://wordpress.org/extend/plugins/wp-postratings/ credits description download url preview
  • 28. Plugin: Flutter Use Flutter to manage the free icon posts Flutter http://flutter.freshout.us
  • 29. Getting Rid Of The Category Base
  • 30. Free Icon Template Creating a Page template for the free icon page <?php /* Template Name: Template - Free Icons */ ?> template-free-icon.php <?php get_header(); ?> <?php $page_num = $paged; if ($pagenum='') $pagenum =1; query_posts('cat=28&posts_per_page=-1&paged='.$page_num); ?> <?php if (have_posts()) : ?> <?php while (have_posts()) : the_post(); ?> <div> display post here </div> <? endwhile;endif; ?> <?php get_sidebar(); ?> <?php get_footer(); ?>
  • 31. Free Icon Template Create a blank page (Free Icons) and assign the template blank page (no content) Page template
  • 32. Creating A Shop With WP ECommerce Plugin

Notas del editor