Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
  • #24844

    1) Is it possible to put description in front of every taxonomy for my CPT, for example:

    —> description: Country: United Kingdom <— taxonomy

    —> description: City: London <— taxonomy

    and i don’t want United Kingdom or London to be links, just plain text

    2) Also, is it possible to select which taxonomies to be printed when someone is using my advanced search form?


    1) No, there’s currently no option to add a description to the taxonomy title.

    2) I’m not sure what you mean – do you refer to the meta data section which lists all terms/categories of a post? If yes, you can exclude the taxonomies with a filter – add following code to the bottom of functions.php:

    add_filter('avf_exclude_taxonomies', 'avia_exclude_tax', 10, 3);
    function avia_exclude_tax($tax,$post_type,$id){
    $tax[] = 'mytaxonomy';
    return $tax;

    Instead of “mytaxonomy” insert the name of the taxonomy you want to exclude. If you want to exclude several taxonomies use:

    $tax[] = 'mytaxonomy';
    $tax[] = 'mysecondtaxonomy';


    Thanks for your reply Dude,

    1) For my first question, if there is no option for DESCRIPTION (Please consider adding it for the next update :) ), can I at least disable the linking? I want them as regular text.

    2) Perfect



    You can use something like this to identify what the taxonomy is to add the description: Just change the country and city to whatever your taxonomy names are

    if ( is_tax( 'country' )){
    $tax_description ='Country: ';
    } elseif ( is_tax( 'city' )) {
    $tax_description ='City: ';

    and then add $tax_description to wherever you are displaying the taxonomy (i cant answer better since i dont see any of your code)

    echo $tax_description . (your current code that displays the taxonomy);




    Hey Nick, thanks for your reply !!!

    Will try it tonight, and write you to let you know how it goes ;)



    I set the status to resolved.

    Best regards,


Viewing 6 posts - 1 through 6 (of 6 total)

The topic ‘Taxonomies’ is closed to new replies.