Extra-shortcodes

Plugin adds "Extra shortcodes": [bloginfo show="name"], [site_title], [site_desc], [site_url], [date format="Y-m-d"], [time], [year], [month], [month_name], [day], [weekday].

  • [bloginfo show="name"] - bloginfo params;
  • [site_title] - Title of the site;
  • [site_desc] - Description of the site;
  • [site_url] - http://site.url;
  • [wp_version] - 3.3.1 (WordPress version);
  • [date format="Y-m-d"] - php date format params;
  • [date format="F" timestamp="+1 months"] - April (on March);
  • [date format="Y-m-d" timestamp="+25 days"] - 2012-04-23 (on 2012-03-29);
  • [date format="Y" timestamp="+1 years"] - 2013 (on 2012);
  • [time format="H:i:s"] - php time format params;
  • [year] - 2012, [year plus="3"] - 2015, [year minus="2"] - 2010;
  • [month] - 3 (in march), [month plus="3"] - 6, [month minus="2"] - 1, [month plus="11"] - 12 (12 is maximum and it is not looped by default), [month plus="11" loop="1"] - 2 (14, but with loop it becomes 2=14-12);
  • [month_name] - March;
  • [day] - 8, [day plus="3"] - 11, [day minus="2"] - 6, [day plus="30"] - 31 (31 is maximum number of days for current month and it is not looped by default), [day plus="30" loop="1"] - 7 (38, but with loop it becomes 7=38-31);
  • [weekday] - Friday;
  • [hours] - 17;
  • [minutes] - 35;
  • [seconds] - 59;

View source of the Extra-shortcodes plugin.

VN:F [1.9.17_1161]
Rating: 0 (from 0 votes)

5 thoughts on “Extra-shortcodes

  1. How can I have the "month_name plus 1" so instead of it showing the current month name 'March' it shows 'April'

    Thanks

    VA:F [1.9.17_1161]
    Rating: 0 (from 0 votes)
    • Update your "Extra-shortcodes" plugin to version 1.2
      and try this shortcode: [month_name plus="2"]

      You may also use this shortcode:
      [date format="l jS \\of F Y h:i:s A" timestamp="+2 years +3 months -20 days -10 hours +30 minutes"]

      VN:F [1.9.17_1161]
      Rating: 0 (from 0 votes)
  2. Pingback: Wordpress News - webvitaly on "Extra-shortcodes"Wordpress News

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="" highlight="">