Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: Simplified blog creation – blogname generated from Blog Title


peterverkooijen
Participant

@peterverkooijen

This also does not work…:

function autoblogname() {
$blogname = preg_replace('/[^a-z0-9]/i', '', str_replace(' ', '', strtolower(wp_specialchars($blog_title, 1))));
return $blogname;
}

...

echo '<input name="blog_title" type="text" id="blog_title" value="'.wp_specialchars($blog_title, 1).'" maxlength="24" /></p>';
?>
<input name="blogname" type="text" id="blogname" value="<? $blogname = autoblogname(); ?>" />

Help! :-(

Skip to toolbar