samanathon
Member
Posted 5 years ago #
I was wonder how to have a list of all of the entries from a specific category listed on a page?
I tried: <?php \wp_list_cats('sort_column=id&optioncount=0&use_desc_for_title=0&child_of=25'); ?>\
But WordPress just ate up the code!
Basically, I want to have a block of static text, then a dynamic list under it, all on an existing WordPress page.
Any thoughts?
Doesn't it display the list of all entries for a category when you click on that category by default?
Could someone please answer this question? When I put this into the code portion of a static page I'm trying to create...
<?php wp_list_cats('sort_column=name&hierarchical=0'); ?>
WordPress just eats the code when I hit save/publish. It will not display anything on the page. Help! Why does it do this here, but in my sidebar the code works perfectly???
Are you editing the template for that static page or just pasting the code into the page editor. Sounds like the later and that's a no-no. You'll need to create a new template for that page and place the code in there. Look here for some tips on theme development.
You can't put code in a page like that. Need to use something like runPHP
http://www.nosq.com/blog/2006/01/runphp-plugin-for-wordpress/