[Plugin: My Category Order] Not working when calling get_categories()
-
I’m using the flowing code to get my categories and put the post for each under them, but the category pluing seems not to get along with it, I tried adding orderby=id to it but the pluing still has no effect over the order any ideas?
Thanks in advanced.`<?php
$categories=get_categories(‘hide_empty=0&exclude=1’);
foreach($categories as $category) {
echo ”- “;
- guid.'”>’.$post->post_title.’
echo “<li class=’nombre_categoria’>”.$category->cat_name.””;
$category_posts=get_posts(‘category=’.$category->cat_ID);
foreach($category_posts as $post) {
echo ‘‘;
};
echo ““;
};
?>`
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘[Plugin: My Category Order] Not working when calling get_categories()’ is closed to new replies.