Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • You’ll have to edit your website’s CSS. Try adding the following:

    span.bwg_title_spun2_0 {
    color: #FFF !important;
    }

    Change the #FFF to the desired colour. The !important tag makes sure that your new CSS will write over the plugin’s CSS, you may not need it depending on your website setup but it doesn’t hurt.

    I would also love shortcodes, especially with the ability to display by department.

    Forum: Plugins
    In reply to: [Staffer] Departments

    It’s actually pretty easy! You just need to set up a quick loop…

    Here is the very simplified version:

    <?php
    
    query_posts('post_type=staff && department=YOURDEPARTMENTHERE');
    while (have_posts()) : the_post();
    
    // echo the staff member's values that you want displayed
    
    endwhile;
    ?>

    Just swap out YOURDEPARTMENTHERE with the department you want to target. Here’s an example from my project, each run through the loops spits out a division (for easy styling) which contains the specific staff members name, picture, and an excerpt of their bio:

    <?php
    
    query_posts('post_type=staff&&department=a');
    while (have_posts()) : the_post();
    
    echo '<div class="staff">';
    
    echo '<h3><a href="';
    the_permalink();
    echo '">';
    the_title();
    echo '</a></h3>';
    
    the_post_thumbnail ( 'medium', array ('class' => 'alignleft') );
    the_excerpt();
    echo '</div>';
    
    endwhile;
    ?>

    I hope this helps you!!

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