Quantcast
Channel: WordPress.org Forums » All Topics
Viewing all articles
Browse latest Browse all 504799

show text if taxonomy text area is empty

$
0
0

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 😉


Viewing all articles
Browse latest Browse all 504799

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>