I was reading about wp_list_pages here: http://codex.wordpress.org/Template_Tags/wp_list_pages
and attempted to use the following suggested code to display subpages of the current page:
<ul> <?php wp_list_pages('title_li=&child_of='.$post->ID.'&show_date=modified &date_format=$date_format'); ?> </ul>
The information about wp_list_pages doesn't say where to use this code, so I assumed it could just be pasted into any existing page, where I want the list of subpages to appear.
Unfortunately, using the WYSIWYG editor included in WordPress doesn't seem to support this, because the page now just displays the code as is, (looking at "View Page Source" from Firefox shows that it replaced "<" with "<" and ">" with ">" etc...).
Am I doing this incorrectly? Is it a bug with WordPress' WYSIWYG editor? a bug with Firefox?
Thanks for any info!
EDIT: I realized that the editor here changed my "& l t ;" and "& g t ;" above to the symbol I was trying to describe. Assume that the second < and the second > are their respective HTML code representations.