This topic has 3 replies, 2 voices, and was last updated 10 years by Catalin.

  • Author

    Tagged: 

  • #27886
     Jonathan
    Participant

    Hi there,

    I’d like to add the breadcrumbs to a custom post type that I have created, and change that section from using the page title to using the first Category title. Is there an easy way to do that?

    #28162
     Catalin
    Moderator

    you have created a custom post template ( .php file ) ?

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #28174
     Jonathan
    Participant

    Yes I have. Is there an easy way to switch it on. I see that, for example, it shows up in the Buddypress section of the site.

    #28237
     Catalin
    Moderator

    take a look at this:

    COPY CODE
    
    
    <?php
    
    
    /***************************************************
    :: Title section
    ***************************************************/
    if (sq_option('title_location', 'breadcrumb') == 'main') {
    	$title_arr['show_title'] = false;
    }
    else {
    	$title_arr['title'] = kleo_title();
    }
    
    if(sq_option('breadcrumb_status', 1) == 0) {
    	$title_arr['show_breadcrumb'] = false;
    }
    
    echo kleo_title_section($title_arr);
    ?>
    
    
    
    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
Viewing 4 posts - 1 through 4 (of 4 total)

The forum ‘KLEO’ is closed to new topics and replies.

Log in with your credentials

Forgot your details?