• Anna
    September 7, 2015 at 1:24 pm #123132

    How you can make the category description show on taxonomy page – show as text on taxonomy page.

    Answer applies for theme version up to v 1.11

    Use this code here https://codex.wordpress.org/Function_Reference/category_description

    In taxonomy.php

    Place above filters (you copy the code above this line)

    <!-Filters start here->

    Thank you

    absimp
    September 7, 2015 at 4:38 pm #123140

    So I use this code?

    <?php echo category_description( $category_id ); ?>

    I’m looking in taxonomy.php and cannot find this:

    < !-Filters start here->

    Can you confirm what line it is on?

    Anna
    October 12, 2015 at 8:10 am #123324

    Have description in HTML, but hidden on taxonomy page:

    In Header.php you should add this code (inside head tag)

    <?php
    
    if( is_tax() ) {
    
    echo ' <meta name="description" content="'.strip_tags( term_description('', get_query_var( 'taxonomy' ) )).'" >';
    
    }
    
    ?>

    This will display the taxonomy description in header (html), for robots to index.

    Add description in taxonomy page for public view

    To add a taxonomy description on front end you need to edit normal_map_core.php or half_map_core.php (if you are using half map version)

    In there look for the is_tax if ( for ex at line 75 in normal_map_core.php) and add this code to display the description

     if( is_tax() ){
    
    echo term_description('', get_query_var( 'taxonomy' ) ) ;
    
    }

    To add the date you need to use this instruction https://codex.wordpress.org/Function_Reference/get_the_date

    If you need different code instructions, please open a ticket in our private support system and will ask my colleagues to follow up – http://support.wpestate.org/

You must be logged in to reply to this topic.

Contact Us

We're not around right now. But you can send us an email and we'll get back to you, asap.