Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Greg Winiarski

    (@gwin)

    Hi,
    right now, without modifying original source code it is only possible to put the category next to the title, you can do that by adding the code below in your (child) theme functions.php file

    
    add_action( "adverts_list_after_title", "my_adverts_list_after_title" );
    function my_adverts_list_after_title( $post_id ) {
        $advert_category = get_the_terms( $post_id, 'advert_category' );
        if( empty( $advert_category ) ) {
            return;
        }
        echo '<span style="display:inline-block;">';
        foreach($advert_category as $c) {
            echo join( " / ", advert_category_path( $c ) );
        }
        echo '</span>';
    }
    
    Thread Starter joek68

    (@joek68)

    thanks!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Category with listing’ is closed to new replies.