NS Shortcodes

Several shortcodes you can use in your theme, content and Text widget

Author:Nilambar Sharma (profile at wordpress.org)
WordPress version required:3.5.1
WordPress version tested:4.0
Plugin version:1.0.2
Added to WordPress repository:05-01-2014
Last updated:24-10-2014
Warning! This plugin has not been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.
Rating, %:0
Rated by:0
Plugin URI:http://nilambar.net
Total downloads:377
plugin download
Click to start download

This plugin provides you several shortcodes which you can use in your theme, content and Text widget. Simple but very useful shortcodes. You can see NS Shortcodes page under Appearance to see what shortcodes are available for you.

Available Shortcodes

[ns-site-title] : Display Site Title

[ns-site-tagline] : Display Site Tagline

[ns-site-url] : Display Site URL

[ns-home-url] : Display home URL

[ns-current-year] : Display current year

[ns-login-url] : Display login URL

[ns-login-url redirect="current"] : Display login URL with redirection to current page

[ns-login-url redirect="home"] : Display login URL with redirection to home page

[ns-logout-url] : Display logout URL

[ns-logout-url redirect="current"] : Display logout URL with redirection to current page

[ns-logout-url redirect="home"] : Display logout URL with redirection to home page

[ns-registration-url] : Display registration URL

[ns-lost-password-url] : Display lost password URL

[ns-lost-password-url redirect="current"] : Display lost password URL with redirection to current page

[ns-lost-password-url redirect="home"] : Display lost password URL with redirection to home page

[ns-theme-url] : Display theme URL

[ns-theme-name] : Display theme name

[ns-theme-author-url] : Display theme author URL

[ns-theme-author-name] : Display theme author name

[ns-theme-version] : Display theme version

Usage

  • You can use shortcodes in Post content or Page content or any other post type.
  • If you want to use shortcodes in Text Widget, please see this
  • To use shortcode in template file, see example given below.

Examples

Example code to put in your template file.

<?php echo do_shortcode('Copyright &copy; [ns-current-year] [ns-site-title] All rights reserved'); ?>