Skip to content

Commit

Permalink
fixes reversion where language gallery cards for languages that have …
Browse files Browse the repository at this point in the history
…videos link to videos in thumbnail rather than language
  • Loading branch information
FredericoAndrade committed Oct 10, 2024
1 parent fbe079f commit 8cc989d
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
$iso_code = get_the_title();
$iso_code_element = '<aside>'.esc_html($iso_code).'</aside>';
$video_query = get_videos_by_featured_language($iso_code);
$url = home_url('/languages/' . $iso_code);

if ($video_query->have_posts()) {
while ($video_query->have_posts()) {
Expand All @@ -16,7 +17,7 @@
$thumbnail_object .= '<div class="no-thumbnail"><p>No resources found to display – Yet.</p></div>';
}

echo '<a href="'.esc_url(get_permalink()).'">';
echo '<a href="'.$url.'">';
echo '<div><h3>' . $title . '</h3>' . $iso_code_element . '</div>';
echo $thumbnail_object;
echo '</a>';
Expand Down

0 comments on commit 8cc989d

Please sign in to comment.