Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function nombre_autor($atts){
- $p = shortcode_atts( array (
- 'nombre' => 'Invitado',
- 'color' => 'blue'
- ), $atts );
- $texto = 'Este artículo ha sido creado por <span style="color:'.$p['color'].'">'.$p['nombre'].'</span>.';
- return $texto;
- }
- add_shortcode('autor','nombre_autor');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement