A Policymaker’s Guide to the Various Ways of Calculating ...
Various Ways of Using WordPress
description
Transcript of Various Ways of Using WordPress
![Page 1: Various Ways of Using WordPress](https://reader034.fdocuments.us/reader034/viewer/2022051819/54c714af4a795916758b45c3/html5/thumbnails/1.jpg)
VARIOUS WAYS OF USING
WordPress
BY: NICK LA
www.ndesign-studio.com
Customizing
![Page 2: Various Ways of Using WordPress](https://reader034.fdocuments.us/reader034/viewer/2022051819/54c714af4a795916758b45c3/html5/thumbnails/2.jpg)
Big Thanks to WordPress!
N.Design Studiondesign-studio.com
Web Designer Wallwebdesignerwall.com
Best Web Gallerybestwebgallery.com
IconDockicondock.com
![Page 3: Various Ways of Using WordPress](https://reader034.fdocuments.us/reader034/viewer/2022051819/54c714af4a795916758b45c3/html5/thumbnails/3.jpg)
Why WordPress?
• Easy to learn & useGood documentation and simple admin panel
• Flexible and dynamicCreate dynamic sites with Template Tags
• SEO friendlyFriendly URL and semantic coding
• FREE!Free open source + plugins and themes
![Page 4: Various Ways of Using WordPress](https://reader034.fdocuments.us/reader034/viewer/2022051819/54c714af4a795916758b45c3/html5/thumbnails/4.jpg)
Things You Should Know
• Custom Fieldshttp://codex.wordpress.org/Using_Custom_Fields
• Conditional Tagshttp://codex.wordpress.org/Conditional_Tags
• Query_Postshttp://codex.wordpress.org/Template_Tags/query_posts
• Page Templatehttp://codex.wordpress.org/Pages
• Finding Good Pluginshttp://wordpress.org/extend/plugins
![Page 5: Various Ways of Using WordPress](https://reader034.fdocuments.us/reader034/viewer/2022051819/54c714af4a795916758b45c3/html5/thumbnails/5.jpg)
How I Use WordPress:
Blog Gallery Shop
webdesignerwall.com bestwebgallery.com icondock.com
![Page 6: Various Ways of Using WordPress](https://reader034.fdocuments.us/reader034/viewer/2022051819/54c714af4a795916758b45c3/html5/thumbnails/6.jpg)
Using WordPress As
Blog
![Page 7: Various Ways of Using WordPress](https://reader034.fdocuments.us/reader034/viewer/2022051819/54c714af4a795916758b45c3/html5/thumbnails/7.jpg)
Displaying A Custom Post Image
![Page 8: Various Ways of Using WordPress](https://reader034.fdocuments.us/reader034/viewer/2022051819/54c714af4a795916758b45c3/html5/thumbnails/8.jpg)
Custom Fields
Custom field
Use custom field to display a post image
![Page 9: Various Ways of Using WordPress](https://reader034.fdocuments.us/reader034/viewer/2022051819/54c714af4a795916758b45c3/html5/thumbnails/9.jpg)
Custom Fields
Custom field Image URL
Assigning custom field (Admin > Write)
![Page 10: Various Ways of Using WordPress](https://reader034.fdocuments.us/reader034/viewer/2022051819/54c714af4a795916758b45c3/html5/thumbnails/10.jpg)
Custom Fields
<?php $postimage = get_post_meta($post->ID, 'post_image', true); ?>
<?php if ($postimage != "") { ?> <a href="<?php the_permalink() ?>"><img src="<?php echo $postimage; ?>" /></a><?php } ?>
index.php
Outputting custom field in template file
![Page 11: Various Ways of Using WordPress](https://reader034.fdocuments.us/reader034/viewer/2022051819/54c714af4a795916758b45c3/html5/thumbnails/11.jpg)
Displaying A Dynamic <title> Tag
![Page 12: Various Ways of Using WordPress](https://reader034.fdocuments.us/reader034/viewer/2022051819/54c714af4a795916758b45c3/html5/thumbnails/12.jpg)
Conditional Tags
<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>
header.php
Use Conditional Tags to display a dynamic <title> tag
![Page 13: Various Ways of Using WordPress](https://reader034.fdocuments.us/reader034/viewer/2022051819/54c714af4a795916758b45c3/html5/thumbnails/13.jpg)
Using WordPress As
Gallery
![Page 14: Various Ways of Using WordPress](https://reader034.fdocuments.us/reader034/viewer/2022051819/54c714af4a795916758b45c3/html5/thumbnails/14.jpg)
Managing Posts With Custom Fields
![Page 15: Various Ways of Using WordPress](https://reader034.fdocuments.us/reader034/viewer/2022051819/54c714af4a795916758b45c3/html5/thumbnails/15.jpg)
Custom Fields
Large Image
URL
Thumb
Use custom fields to display post content
![Page 16: Various Ways of Using WordPress](https://reader034.fdocuments.us/reader034/viewer/2022051819/54c714af4a795916758b45c3/html5/thumbnails/16.jpg)
Plugin: Custom Write Panel
Custom Write Panelhttp://wordpress.org/extend/plugins/custom-write-panel/
Save time by using Custom Write Panel plugin to manage posts
![Page 17: Various Ways of Using WordPress](https://reader034.fdocuments.us/reader034/viewer/2022051819/54c714af4a795916758b45c3/html5/thumbnails/17.jpg)
Theme Switcher
![Page 18: Various Ways of Using WordPress](https://reader034.fdocuments.us/reader034/viewer/2022051819/54c714af4a795916758b45c3/html5/thumbnails/18.jpg)
Plugin: Theme Switcher
Theme Switcherhttp://wordpress.org/extend/plugins/theme-switcher/
Thumbnail Large Preview Details
With Theme Switcher, visitors can pick their layout preference
![Page 19: Various Ways of Using WordPress](https://reader034.fdocuments.us/reader034/viewer/2022051819/54c714af4a795916758b45c3/html5/thumbnails/19.jpg)
ThemesOverview of template files
![Page 20: Various Ways of Using WordPress](https://reader034.fdocuments.us/reader034/viewer/2022051819/54c714af4a795916758b45c3/html5/thumbnails/20.jpg)
PHP Include
<?php if (is_page()) { 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 }?>
Use Conditional Tags to dynamically include template file from the “master” theme
/* Theme Name: Details*/
![Page 21: Various Ways of Using WordPress](https://reader034.fdocuments.us/reader034/viewer/2022051819/54c714af4a795916758b45c3/html5/thumbnails/21.jpg)
Using WordPress As
Shop / Blog
![Page 22: Various Ways of Using WordPress](https://reader034.fdocuments.us/reader034/viewer/2022051819/54c714af4a795916758b45c3/html5/thumbnails/22.jpg)
Displaying The 5 Latest Posts
![Page 23: Various Ways of Using WordPress](https://reader034.fdocuments.us/reader034/viewer/2022051819/54c714af4a795916758b45c3/html5/thumbnails/23.jpg)
Query_Posts
Display 5 latest posts
Use query_posts to display the 5 latest posts
![Page 24: Various Ways of Using WordPress](https://reader034.fdocuments.us/reader034/viewer/2022051819/54c714af4a795916758b45c3/html5/thumbnails/24.jpg)
Query_Posts
<?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="recent-post"> <?php } else { ?> <li> last 4 post links </li> <? } ?><?php endwhile;?> </ul><?php else : ?> ...code...<?php endif; ?>
index.php
Sample code: query_posts and the loop
![Page 25: Various Ways of Using WordPress](https://reader034.fdocuments.us/reader034/viewer/2022051819/54c714af4a795916758b45c3/html5/thumbnails/25.jpg)
Conditional Tags
<?php if (in_category('28')) { ?> <p>credits</p> <?php if(function_exists('the_ratings')) { the_ratings(); } ?><?php } else { ?> <p>regular post data</p><? } ?>
If the post is in the free icon category, display the post rating plugin
![Page 26: Various Ways of Using WordPress](https://reader034.fdocuments.us/reader034/viewer/2022051819/54c714af4a795916758b45c3/html5/thumbnails/26.jpg)
Managing Free Icon Posts With Custom Fields
![Page 27: Various Ways of Using WordPress](https://reader034.fdocuments.us/reader034/viewer/2022051819/54c714af4a795916758b45c3/html5/thumbnails/27.jpg)
Custom Fields
download url
WP PostRatingshttp://wordpress.org/extend/plugins/wp-postratings/
preview
description
credits
Custom fields on the free icon page
![Page 28: Various Ways of Using WordPress](https://reader034.fdocuments.us/reader034/viewer/2022051819/54c714af4a795916758b45c3/html5/thumbnails/28.jpg)
Plugin: Flutter
Flutter http://flutter.freshout.us
Use Flutter to manage the free icon posts
![Page 29: Various Ways of Using WordPress](https://reader034.fdocuments.us/reader034/viewer/2022051819/54c714af4a795916758b45c3/html5/thumbnails/29.jpg)
Getting Rid Of The Category Base
![Page 30: Various Ways of Using WordPress](https://reader034.fdocuments.us/reader034/viewer/2022051819/54c714af4a795916758b45c3/html5/thumbnails/30.jpg)
Free Icon TemplateCreating a Page template for the free icon page
<?php/*Template Name: Template - Free Icons*/?>
<?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(); ?>
template-free-icon.php
![Page 31: Various Ways of Using WordPress](https://reader034.fdocuments.us/reader034/viewer/2022051819/54c714af4a795916758b45c3/html5/thumbnails/31.jpg)
Free Icon TemplateCreate a blank page (Free Icons) and assign the template
blank page (no content)
Page template
![Page 32: Various Ways of Using WordPress](https://reader034.fdocuments.us/reader034/viewer/2022051819/54c714af4a795916758b45c3/html5/thumbnails/32.jpg)
Creating A Shop With WP ECommerce Plugin
![Page 33: Various Ways of Using WordPress](https://reader034.fdocuments.us/reader034/viewer/2022051819/54c714af4a795916758b45c3/html5/thumbnails/33.jpg)
Download WP eCommercehttp://www.instinct.co.nz/e-commerce/
![Page 34: Various Ways of Using WordPress](https://reader034.fdocuments.us/reader034/viewer/2022051819/54c714af4a795916758b45c3/html5/thumbnails/34.jpg)
Inspiration
![Page 35: Various Ways of Using WordPress](https://reader034.fdocuments.us/reader034/viewer/2022051819/54c714af4a795916758b45c3/html5/thumbnails/35.jpg)
45Royale Inc.http://www.45royale.com
Creative Departhttp://www.creativedepart.com
Typographicahttp://new.typographica.org
FlickOuthttp://flickout.com
Jeff Finleyhttp://www.jefffinley.org
![Page 36: Various Ways of Using WordPress](https://reader034.fdocuments.us/reader034/viewer/2022051819/54c714af4a795916758b45c3/html5/thumbnails/36.jpg)
Thank You