User Info Shortcodes: Display Nickname, Website Name, and Date with Ease
User Info Shortcodes Plugin
The User Info Shortcodes Plugin is a powerful and simple-to-use WordPress plugin that enhances your website by providing three essential shortcodes. These shortcodes allow you to effortlessly display the current user’s nickname with their Gravatar, the website name, and the current date within your posts, pages, or widgets.
Features:
- User Nickname with Gravatar: Display the logged-in user’s nickname along with their Gravatar icon using the shortcode. The Gravatar is styled to be circular and appears inline with the nickname for a visually appealing presentation.
- Website Name: Show your website’s name using the shortcode. It’s a quick and easy way to reference your site name anywhere on your site.
- Current Date: Insert the current date formatted according to your WordPress settings using the shortcode. This feature is perfect for adding dynamic date references in your content.
- Guest: If the user is not login it will display a guest name and Icon.
New updates:
V1,4
- If user is not login it will show as guest and a blank gravatar icon will be used.
- The Current date can now be customized via the shortcode, Please see the plugin panel for details.
- default gravatar icon size is set to 32px. You if you need to customize the size. Please add this to your custom css. Please change the height and width values.
.user-nickname-avatar {
border-radius: 50%;
margin-right: 8px;
width: 32px; /* Control the size of the Gravatar */
height: 32px; /* Control the size of the Gravatar */
}
Example Link:
Admin Interface:
The plugin includes a straightforward admin page under the “Settings” menu, providing clear instructions on how to use each shortcode. This ensures that even users with minimal technical knowledge can make full use of the plugin’s capabilities.
If you need to modify the CSS or the PHP for any of the sections, please understand PHP and CSS.
How to Use:
User Nickname:[user_nickname]
Website Name:[website_name]
Current Date:[current_date]
Custom Date: [current_date format="F j, Y"]
Installation:
- Download the
user-info-shortcodes.zip
file. - Upload the
user-info-shortcodes
folder to the/wp-content/plugins/
directory. - Activate the plugin through the ‘Plugins’ menu in WordPress.
- Navigate to “Settings” > “User Info Shortcodes” for instructions on using the shortcodes.
Enhance your WordPress site with the User Info Shortcodes Plugin today, and provide dynamic, personalized content to your visitors effortlessly!
Notes:
This basic script, CSS style, and plugin are designed to function optimally assuming minimal interference from your theme or other plugins. If conflicts occur or further customization is needed, additional adjustments may be necessary. Please note that this script, CSS style, or plugin must be used AS IS.
Wp Scriptly
Comments: