Forum Replies Created

Viewing 1 replies (of 1 total)
  • Thread Starter sengelhorn

    (@sengelhorn)

    It wasn’t that the bio wasn’t showing – it was that I could not update it. I had converted regular posts over to staff members – so they still had information in the ‘content’ area. I had to go into the theme functions.php and check for the custom bio field.

    [ Moderator note: please wrap code in backticks or use the code button. ]

    if (!function_exists('weaverii_the_contnt')) {
    function weaverii_the_contnt($m='') {
      $custom = get_post_custom();
    $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];
    $bio 	= $custom["_staff_member_bio"][0];
        if ((weaverii_is_checked_page_opt('wvr_raw_html') && !weaverii_sc_getopt('showposts')) || weaverii_is_checked_post_opt('wvr_raw_html')) {
            echo do_shortcode(get_the_content($m));
        } else {
    		if ($bio) {
    		   echo $bio ;
    		} else {
    	        the_content($m);
    	    }
        }
    }
    }
Viewing 1 replies (of 1 total)