permalinks pointing to categories not posts in homemade dropdown menu
-
Hi,
My first post on this forum I hope this is not to silly a question.Im trying to build a dropdown menu from posts in a category.
In other words I have a menu in my sidebar of categories in my blog, when you select a menu item I want a list of all the posts in the menu to appear with permalinks to the posts underneath the menu item.
Im not yet very familiar with wordpress codex but Ive managed sort of something that looks almost like what I want using this code‘ books
<?php if ( in_category(boeken) ) {
while (have_posts()) : the_post();
// the content of the post
the_title(‘‘, ‘‘,’display’);endwhile;
} else {
echo ‘ ‘;
}
?> ‘Not as elegant as I would like but it works, except for 1 thing the permalink in all the posts belonging to the category books point to the category not the post.
I’m probably doing this in completely the wrong manner but maybe somebody can point me in the right direction!Regards and hopefully somebody can help!
- The topic ‘permalinks pointing to categories not posts in homemade dropdown menu’ is closed to new replies.