3
Change the home page as my custom page Settings --> Reading, Static Page To make in ascending order <?php query_posts('order=ASC'); ?> To create a template <?php /* Template Name: Snarfer */ ?> How to call a post by category name <?php query_posts('category_name=who-right'); while (have_posts()) : the_post(); $queried_post = get_po st($post_id); ?><li id="entry"><?php echo $queried_post->post_content;?></li> <?php endwhile;?> How to call a content based on different pages <?php if (is_home()) {} elseif (is_page_template('Contact Us.php')) { } else { ?> HOw to call a js <script type="text/javascript" src="<?php bloginfo ('template_directory'); ?>/js/jQuery v1.7.1.js"></ script> How to derive a permalink

Wordpress Templates Call

Embed Size (px)

DESCRIPTION

Templates coding for wordpress

Citation preview

  • Change the home page as my custom pageSettings --> Reading, Static Page

    To make in ascending order

    To create a template

    How to call a post by category name

    How to call a content based on different pages

    HOw to call a js

  • }?>