Just add this lines in the hook text:
<?php if (is_single( )) { banner here... <?php } ?>
Don’t forget to allow php execution.
Here’s one related article: http://www.berchman.com/thesis-tutorial-custom-after-the-post-box/
Just add this lines in the hook text:
<?php if (is_single( )) { banner here... <?php } ?>
Don’t forget to allow php execution.
Here’s one related article: http://www.berchman.com/thesis-tutorial-custom-after-the-post-box/
Go to the Settings -> Permalinks and add custom:
/%category%/%postname%/
If your url looks like this:
http://www.yourblog.com/category/some-name-of-a-category
You could make it look like this:
http://www.yourblog.com/some-name-of-a-category
Just go to the Settings -> Permalinks and change Category base to (dot)
.
This function will return the theme directory URL so you can use it in other functions:
get_bloginfo('template_directory');
Alternatively, this function will echo the theme directory URL to the browser:
bloginfo('template_directory');
So an example for an image in the themes images/headers
folder would be:
<img src="<?php bloginfo('template_directory'); ?>/images/headers/image.jpg" />
How to allow more html tags in the wordpress comments?
Published by admin on 10 Dec ’10Scenario: I am using the tinymcecomments plugin to give some formatting capabilities to commenters. Also oEmbed for Comments is nice one – when you put a link to youtube or vimeo it automatically embeds the video.
With the latest WP update I realised the
span
tag was removed from comments; colors attributes are filtered by the kses filter.