Changeset 1802155
- Timestamp:
- 01/13/2018 12:49:37 AM (7 years ago)
- Location:
- dated/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
dated/trunk/dated.php
r1732176 r1802155 2 2 /* 3 3 * Plugin Name: autometa's DATED 4 * Description: It reproduces the publication date in pages or posts orportfolios or products simply via: [dated].5 * Version: 1.14 * Description: It reproduces publication dates in pages, posts, portfolios or products simply via: [dated]. 5 * Version: 2.0 6 6 * Author: JorgeAmVF 7 7 * Author URI: https://profiles.wordpress.org/jorgeamvf/ … … 26 26 */ 27 27 28 // [dated] = date29 function autometa_publication_date() {30 $autometaspublicationdate = get_the_date();31 return $autometaspublicationdate;28 // [dated] = publication date 29 function autometa_publication_date() { 30 $am_dated = '<span id="dated" class="autometa">' . get_the_date() . '</span>'; 31 return $am_dated; 32 32 } 33 add_shortcode( "dated","autometa_publication_date");33 add_shortcode( "dated", "autometa_publication_date" ); 34 34 ?> -
dated/trunk/readme.txt
r1732176 r1802155 3 3 Donate link: https://quaestio.org/ 4 4 Tags: shortcode, automation, metadata, date 5 Requires at least: 2.5.06 Tested up to: 4. 8.15 Requires at least: 3.0.0 6 Tested up to: 4.9.1 7 7 Stable Tag: trunk 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html 10 10 11 It reproduces the date in pages or posts or portfolios or products simply via: [dated].11 It reproduces publication dates in pages, posts, portfolios or products simply via: `[dated]`. 12 12 == Description == 13 13 14 <strong>autometa's DATED</strong>is a simple plugin that uses the following shortcode:14 **autometa's DATED** is a simple plugin that uses the following shortcode: 15 15 16 * *[dated]*= to reproduce the publication date.16 * `[dated]` = to reproduce the publication date. 17 17 18 **autometa's DATED** is an element of **[autometa](https://wordpress.org/plugins/autometa/)** plugin set. 19 20 == Installation == 21 22 1. Download it or install it to your plugin folder; 23 2. Activate it from the plugin tab inside your dashboard; 24 3. Write the following shortcode in text fields: *[dated]*. 18 **autometa's DATED** is a standalone component of **[autometa](https://wordpress.org/plugins/autometa/)** shortcodes pack. 25 19 26 20 == Frequently Asked Questions == 27 21 28 = How does autometa's DATED work?=22 = Installation Instructions = 29 23 30 **[autometa](https://wordpress.org/plugins/autometa/)** reproduces metadata information automatically via shorcodes in general, **autometa's DATED** reproduces the publication date in special. 24 1. Install it from *Dashboard*/*Plugins*/*Add Plugins* or download it to your plugin folder; 25 2. Activate it from *Dashboard*/*Plugins*/*Installed Plugins*; 26 3. Write the following shortcode in text fields: `[dated]`. 31 27 32 = What is needed to use autometa's DATED?=28 = Plugin Features = 33 29 34 Just write the following shortcode inside a text field and between brackets as usual: *[dated]*.30 **[autometa](https://wordpress.org/plugins/autometa/)** reproduces metadata information automatically via shorcodes in general, **autometa's DATED** reproduces date-related data in special. 35 31 36 = Which functions are used by autometa's DATED?=32 = How To = 37 33 38 These: [`add_shortcode()`](https://developer.wordpress.org/reference/functions/add_shortcode/) and [`get_the_date()`](https://developer.wordpress.org/reference/functions/get_the_date/). 34 Just write the following shortcode inside a text field and between brackets as usual: `[dated]`. 35 36 = CSS Style Selectors = 37 38 * `#dated` = `[dated]` ID; 39 * `.autometa` = **autometa** class. 40 41 = PHP Functions Reference = 42 43 * [`add_shortcode()`](https://developer.wordpress.org/reference/functions/add_shortcode/) 44 * [`get_the_date()`](https://developer.wordpress.org/reference/functions/get_the_date/)
Note: See TracChangeset
for help on using the changeset viewer.