diff --git a/archive.php b/archive.php index 1b3c0d7..37ac50f 100644 --- a/archive.php +++ b/archive.php @@ -83,7 +83,11 @@ $term = get_term_by( 'slug', get_query_var( 'term' ), get_query_var( 'taxonomy' ) ); if ( get_query_var( 'taxonomy' ) === 'programing_language' ) { - $page_title = "Bots made with " . $term->name; + if ( !empty( $_GET['opensource'] ) ){ + $page_title = "Open-source bots made with " . $term->name; + } else { + $page_title = "Bots made with " . $term->name; + } } else { $page_title = "Posts tagged #" . $term->name; } @@ -95,6 +99,18 @@ if ( !empty( $term->description ) ){ echo wpautop( $term->description ); } + + if ( get_query_var( 'taxonomy' ) === 'programing_language' ) { + $page_title = "Bots made with " . $term->name; + ?> +