Updated a bit
-
Greetings,
I love the simplicity of the pluging. I needed it tweaked a bit so that I know if the link showing is the same as the archive page. Here’s my edit starting at line 267$linkyear = get_query_var('year'); foreach ( (array) $results as $result ) { $url = get_year_link( $result->year ); if ( 'post' !== $r['post_type'] ) { $url = add_query_arg( 'post_type', $r['post_type'], $url ); } $text = sprintf( '%d', $result->year ); if ( $r['show_post_count'] ) { $r['after'] = ' (' . $result->posts . ')' . $after; } if ($result->year == $linkyear){$selected = true;} else $selected = false; $output .= get_archives_link( $url, $text, $r['format'], $r['before'], $r['after'], $selected); }Thanks again and let me know if this is in the update so I don’t have to make a manual change. Ciao.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
The topic ‘Updated a bit’ is closed to new replies.