Plugin Author
vicchi
(@vicchi)
Hi Clarence,
Thanks for the great feedback! In answer to your question the full use of the [wp_biographia]
shortcode is documented in the plugin’s entry in the WordPress Plugin Repository over at http://wordpress.org/extend/plugins/wp-biographia/other_notes/.
As an aside, it’s general perceived wisdom that keeping the built-in admin
account enabled on a (self hosted) WordPress install is a security risk as it gives people a known account to try and break into, so if you delete the admin
account, it’s a simple solution to your question.
But I appreciate that not everyone wants to do this, so the slightly longer answer is that you need to suppress the admin
user from being displayed in the Biography Box by WP Biographia and use the shortcode in configured mode.
Here’s how you do this …
- From the admin dashboard navigate to Settings / WP Biographia Settings and Options.
- Under Biography Box Per User Settings add the
admin
account to the list of Suppressed Users for either pages, posts or both.
- Save your settings.
- If you want to use the
[wp_biographia]
shortcode within post or page content, in wildcard mode, with the admin
user suppressed (as you’ve just configured it to be), use [wp_biographia mode="configured" user="*"]
.
- Save your post and/or page and you should be good to go.
- The shortcode works as-is for post and/or page content that is processed within the WordPress Loop. If you want to use the shortcode outside of the Loop, you’ll need to find a suitable action hook and use the WordPress
do_shortcode()
API call within either your theme’s template files (slightly messy) or within your theme’s functions.php
(much cleaner and preferable).
- If you go down the action hook route, you’ll need to write an action handler, queue this into the hook via the
add_action()
API call and within your action handler call do_shortcode()
along the lines of do_shortcode ("[wp_biographia mode="configured" user="*"]);
.
Hope this helps.
-Gary