Title: Updated a bit
Last modified: March 8, 2021

---

# Updated a bit

 *  Resolved [leepettijohn](https://wordpress.org/support/users/leepettijohn/)
 * (@leepettijohn)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/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'] = '&nbsp;(' . $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.
    -  This topic was modified 5 years, 4 months ago by [leepettijohn](https://wordpress.org/support/users/leepettijohn/).

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Contributor [twinpictures](https://wordpress.org/support/users/twinpictures/)
 * (@twinpictures)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/updated-a-bit/#post-14152124)
 * woha… a request _and_ an offered solution?!
    sir. thank you.
 * we’ll look into this and post our results first to [github](https://github.com/baden03/annual-archive),
   and after a bit of testing here on the WordPress plugin repo.
 * Stay tuned for a progress updated.
 *  Plugin Contributor [twinpictures](https://wordpress.org/support/users/twinpictures/)
 * (@twinpictures)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/updated-a-bit/#post-14152268)
 * How exactly is this being used on the site? As a shortcode or sidebar widget?
   Classic or Gutenberg block, or some kind of page builder? There is a more advanced
   feature that can highlight _current_ or_ active year_ in the pro version.
 * Happy to add the above to the next version, but want to ensure it’s the most 
   flexible solution for you.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Updated a bit’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/anual-archive_8690a8.svg)
 * [Annual Archive](https://wordpress.org/plugins/anual-archive/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/anual-archive/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/anual-archive/)
 * [Active Topics](https://wordpress.org/support/plugin/anual-archive/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/anual-archive/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/anual-archive/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [twinpictures](https://wordpress.org/support/users/twinpictures/)
 * Last activity: [5 years, 4 months ago](https://wordpress.org/support/topic/updated-a-bit/#post-14152268)
 * Status: resolved