Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter miozzio

    (@miozzio)

    Hey Brett,

    May I trouble you with one last thing? On the individual staff member’s page, I would like to have the picture fixed to the left (current position is ok) and the text fall to the right.

    This is the current display positioning:

    https://ibb.co/n4fedk

    This is the desired display formatting:

    https://ibb.co/nnOnW5

    Here is my single-staff-member.php code:

    <?php get_header(); ?>
    <?php
    		global $post;
    		$custom 	= get_post_custom();
    		$t_name 		= get_the_title();
    		$name_slug	= basename(get_permalink());
    		$title 		= $custom["_staff_member_title"][0];
    		$email 		= $custom["_staff_member_email"][0];
    		$phone 		= $custom["_staff_member_phone"][0];
    		$fax 		= $custom["_staff_member_fax"][0];
    		$bio 		= $custom["_staff_member_bio"][0];
    		$prof 		= $custom["_staff_member_prof"][0];
    		$fb_url		= $custom["_staff_member_fb"][0];
    		$tw_url		= 'http://www.twitter.com/' . $custom["_staff_member_tw"][0];
    		$li_url		= $custom["_staff_member_li"][0];
    		if(has_post_thumbnail()){
    
    			$t_photo_url = wp_get_attachment_url( get_post_thumbnail_id() );
    			$t_photo = '<img class="staff-member-page-photo" src="'.$t_photo_url.'" alt = "'.$title.'">';
    		}else{
    			$t_photo_url = '';
    			$t_photo = '';
    		}
    		$email_mailto = '<a class="staff-member-email" href="mailto:'.antispambot( $email ).'" title="Email '.$name.'">'.antispambot( $email ).'</a>';
    ?>	
    
    	<div id="page-full">
    
    		<?php while (have_posts()) : the_post(); ?>
    
    					
    			<h1><?php the_title(); ?></h1> <!-- This is the Standard page title -->
    
    			<h3><?=$title?></h3> <!-- This is the Staff Memeber Title -->
    
    			<?=$t_photo?> <!-- This is the Staff Memeber Photo -->	
    
    			<p><?=$bio?></p>  <!-- This is the Staff Memeber Bio -->
    
    			<?php the_content();?>
    
    				<?php endwhile; ?>	
    
    	</div><!-- #page-full -->
    
    <?php get_footer(); ?>
    Thread Starter miozzio

    (@miozzio)

    Hi Brett,

    Thank you so much for your help and for the great plugin – that really helped me out!

    Best,
    Matt

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