All in one multi-purpose shortcode builder.
ShortcodeHub is a new WordPress pluign to create your own shortcode group. With our powerful query builder, you can create simple grid, masonry grid, slider, carousel, glossary, timeline and much more.
We have categorize the shortcodes in the groups. These are basic, core and post query.
We create some custom post types and also we create categories, tags and custom taxonomies.
We add the content in these post types and show theme on specific pages as per our requirement.
To do it from a scratch, Technically we do it with WP_Query. And without coding it was not possible.
But, Now! It’s Possible with ShortcodeHub!
Below is the list of some shortcode styles for the Post Query Builder.
We have added much more most helpful shortcode’s. These includes post, author, theme, plugin, date & time etc.
We have added the date and time shortcodes to show the date and time as per our need.
Date Examples Use below shortcodes to show the current date.
Example Output [sh_date format='d/m/y'] 15/02/19 [sh_date format='d-M-Y'] 15-Feb-2019 [sh_date format='d F Y'] 15 February 2019 [sh_date format='dS F Y'] 15th February 2019 [sh_date format='M, dS Y'] Feb, 15th 2019
Date & Time Examples Use below shortcodes to show the current date & time.
Example Output [sh_date format='d-m-Y h:i:s a'] 15-02-2019 05:57:15 pm [sh_date format='d-M-Y h:i:s a'] 15-Feb-2019 05:57:15 pm [sh_date format='d F Y h:i a'] 15 February 2019 05:57 pm
Time 12 hrs Examples Use below shortcodes to show the current time in 12 hours format.
Example Output [sh_date format='h:i a'] 05:57 pm [sh_date format='h:i A'] 05:57 PM [sh_date format='h:i:s a'] 05:57:15 pm [sh_date format='h:i:s A'] 05:57:15 PM
Time 24 hrs Examples Use below shortcodes to show the current time in 24 hours format.
Examples Output [sh_date format='H:i a'] 17:57 pm [sh_date format='H:i A'] 17:57 PM [sh_date format='H:i:s a'] 17:57:15 pm [sh_date format='H:i:s A'] 17:57:15 PM
In single post, page or custom post type if we want to show the title in the content anywhere then just use the shortcode [sh_post_title]. This return return the current post title.
Or
If you want to show any other post title then just add the id of that post in the shortcode. E.g. [sh_post_title id="123"]
This shortcodecode return the title of the post whose id is 123.
Below is the complete list of shortcodes.
[sh_post_id] [sh_post_title] [sh_post_slug] [sh_post_content] [sh_post_excerpt] [sh_post_author] [sh_post_date] [sh_post_date_gmt] [sh_post_modified] [sh_post_modified_gmt] [sh_post_publish_date] [sh_post_publish_date_gmt] [sh_post_update_date] [sh_post_update_date_gmt] [sh_post_status] [sh_post_comment_status] [sh_post_ping_status] [sh_post_password] [sh_post_to_ping] [sh_post_pinged] [sh_post_content_filtered] [sh_post_parent] [sh_post_guid] [sh_post_menu_order] [sh_post_type] [sh_post_mime_type] [sh_post_comment_count] [sh_post_filter]
In WordPress main user roles are Administrator, Author, Editor, Contributor and Subscriber. We can create more user roles as per our requirement.
Suppose we want to show the current user name then we can show it with shortcode [sh_author_display_name] or show any other user name by passing the user id in the shortcode.
E.g. [sh_author_display_name id="1"] This will return the display name of the user whose user id is 1.
Below is the complete list of shortcodes.
[sh_author_id] [sh_author_admin_color] [sh_author_aim] [sh_author_comment_shortcuts] [sh_author_description] [sh_author_display_name] [sh_author_first_name] [sh_author_jabber] [sh_author_last_name] [sh_author_nickname] [sh_author_plugins_last_view] [sh_author_plugins_per_page] [sh_author_rich_editing] [sh_author_syntax_highlighting] [sh_author_user_activation_key] [sh_author_user_description] [sh_author_user_email] [sh_author_user_firstname] [sh_author_user_lastname] [sh_author_user_level] [sh_author_user_login] [sh_author_user_nicename] [sh_author_user_pass] [sh_author_user_registered] [sh_author_user_status] [sh_author_user_url] [sh_author_yim]