Magpierss with UTF8

MagpieRSS is an RSS parser in PHP. If you’re parsing UTF-8 streams and the output looks crippled then you might want to try this (add this to your file that calls the Magpie-code ) :


Show comment box / comments on a WordPress Page

Just include this in your theme / template for the WP-pages : <?php comments_template(); ?>

If you’re not happy with the default then just edit the file comment.php

WordPress, printing ParentChild menus

Worpress allows you to print parent menu’s with different child-menus. Implementation is easy, just add this to your themes.

In the file that creates the header of your page, normally header.php, add this code:

<?php $args = array( ‘title_li’ => ”, ‘sort_column’=>’menu_order’, ‘depth’ => 1 ); wp_list_pages($args); ?>

Then in the file that creates your child menu (normally this should be sidebar.php) add this code:

<?php if($post->post_parent) { $children = wp_list_pages(“title_li=&child_of=”.$post->post_parent.”&echo=0″); } else { $childrenRead more.