Replies: 0
Hi I am trying to show an alternative text if my taxonomy textarea is empty. I found a solution for just text:
<?php // Get the content for shop
echo $stores_shop;
if(trim($stores_shop) == "") // Check if the string is empty or only whitespace
{
echo $sq = get_search_query() ? get_search_query() : __('other infos', 'appthemes');
}
?>
However i need to add extra php within in the text ‘other infos‘, i can call this text with echo $term->slug;
.
I am stuck and need some help please 😉