WordPress.org

Support

Support » Plugins and Hacks » Simple Staff List » Bio information won't update

Bio information won't update

Viewing 2 replies - 1 through 2 (of 2 total)
  • The bio is shown. What is your question?

    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 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Bio information won't update’ is closed to new replies.
Skip to toolbar