Quote:
Originally Posted by asmalik12
@ Marik That's a actual problem. Where it is displaying? 
|
Where is it displaying? Well, since this is a conditional statement to show something on the single page which according to wordpress terminology refers to "Posts". Not "Page" pages, Not "Category" pages, Not "Tag" pages, but Posts.
So suppose you wanted to say "Hello this is a post" ONLY on your posts, you would use this:
PHP Code:
<?php if (is_single()) { ?>
<p>Hello this is a post page</p>
<?php } ?>
Now as for where you would put this, the whole point of using a conditional statement like this is if it will be placed on a page that is shared by many other pages, so something like this will typically be placed in header.php, sidebar.php, footer.php or some other include file.
But you can actually affect single posts without conditionals by just placing the code in your post.php file.
If this still hasn't answered your question, then maybe you can explain what it is that you are trying to achieve because your initial post isn't really a clear question.
|