Hi all together,
I am quite new to programming, so I appologize in advance if I oversee something here.
Thematic is just a great theme and I am facinated of all the posibillities that come along with it.
At the moment I am programming an category archive with a glossary style alphobetic order.
My problem at the moment is, that the nav-below on post page is displaying the next post sorted by date, instead of title.
I am stuck right now, but am quite sure I'm missing something here.
this is the code I got so far with help of this great forum:
function childtheme_next_post_link_args($args) {
if (in_category('6'))
{
$args = array ( 'format' => '%link',
'link' => '%title <span class="meta-nav">»</span>',
'in_same_cat' => TRUE,
'excluded_categories' => '',
'orderby' => 'title',
'order' => 'asc');
}
else
{
$args = array ( 'format' => '%link',
'link' => '%title <span class="meta-nav">»</span>',
'in_same_cat' => FALSE,
'excluded_categories' => '6'); //lexicon id
}
return $args;
}
add_filter('thematic_next_post_link_args', 'childtheme_next_post_link_args');
Thank you very much in advance an.