sangkrit

Getting Started With WordPress Theme Development

A wordpress theme’s directory contains:

index.php header.php footer.php single.php 404.php Search.php Page.php Comments.php Archive.php Tags.php Category.php Author.php siderbar.php function.php style.css

Before getting stared you may use these post links for getting familiar with the coding we are going to do here in the theme development:

(For example: Click on Function’s link to know, ‘How to [...]

How to Separate Trackbacks / Pingbacks and True Comments

Organise the comment area by placing the comments on one side and trackbacks to other in your comments .php template:

<?php if ( $comments ) : ?>

<?php foreach ($comments as $comment) : ?>

<?php $comment_type = get_comment_type(); ?>

<?php if($comment_type == ‘comment’) { ?>

<!– This is a comment –>

<!– Comment’s content–>

<?php [...]