WordPress.org

Ready to get started?Download WordPress

Plugin Directory

NS Shortcodes

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

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'); ?>

Requires: 3.5.1 or higher
Compatible up to: 3.9.2
Last Updated: 2014-4-20
Downloads: 221

Ratings

0 stars
0 out of 5 stars

Support

0 of 1 support threads in the last two months have been resolved.

Got something to say? Need help?

Compatibility

+
=
Not enough data

0 people say it works.
0 people say it's broken.