Support » Fixing WordPress » unique disclaimer for each portfolio category

  • Hi. I’ve been cracking my mind on how to filter my portfolio categories so that each category will have a different text (i.e. disclaimer) on top. I am using commander theme by themeforest. The theme features a page where all portfolios are listed and in the sidebar you can click a certain category and only portfolios of that category will show (the page doesn’t load). The problem is i have 3 categories and should have 3 disclaimer notice on top of the page. Here’s the code for portfolio.php:

    `<?php if ($oi_data[‘sl_portfolio_style’] == “Portfolio with Sidebar”) { ?>

    <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>


    $custom = get_post_custom($post->ID);

    $large_image_url = wp_get_attachment_image_src( get_post_thumbnail_id(), ‘large’);

    $cat = get_the_category($post->ID);


    <?php $cur_terms = get_the_terms( $post->ID, ‘portfolio-category’ );

    foreach($cur_terms as $cur_term){


    $catt = get_the_terms( $post->ID, ‘portfolio-category’ );

    $slugg = ”;

    foreach($catt as $vallue=>$key){

    $slugg .= strtolower($key->slug) . ” “;



  • The topic ‘unique disclaimer for each portfolio category’ is closed to new replies.