gillish

Use Dynamic Tags

A Dynamic Tag is a short code in square brackets that you type in your text, such as [y] for the current year. When someone opens the page, Core puts the value in its place. So a line like [c] [y] My Company stays right every year without you changing it.

First turn Dynamic Tags on (see Change Core’s general settings). Their settings are under Gillish → Core Settings, tab Dynamic Tags.

Use a tag

  1. Open a post or page in the block editor.

  2. Type the tag in a paragraph, for example [cyr].

  3. Save the page and view it.

The page shows the value, here the copyright sign and this year. In the editor you still see the tag. To take it away, delete the tag from the text.

The tags

Each line shows the tag and what a visitor sees.

Date and time

In your site’s time zone.

  • [y]: the year.
  • [m]: the month, such as October.
  • [d]: the day of the month.
  • [w]: the week number.
  • [today]: today’s date, as day/month/year.
  • [time]: the time, such as 20:50.

Content

About the post or page the tag is in.

  • [published]: the day it was published.
  • [modified]: the day it was last changed.
  • [views]: how many times it was viewed (see Count post views).
  • [comments]: how many comments it has.
  • [readtime]: how long it takes to read, such as 2 min (see Reading speed).
  • [words]: how many words it has.
  • [c]: the copyright sign, ©.
  • [copy]: the word Copyright.
  • [cyr]: the sign and this year.
  • [yrspan year="2020"]: the sign and the years from the one you give to this year.
  • [yrfull year="2020"]: the same with the word Copyright.

With [yrspan] and [yrfull], a start year of this year, a year in the future, a year before 1900, or no year at all shows this year alone.

Site and visitor

  • [ip]: the visitor’s network address.
  • [sitename]: your site’s title.
  • [user]: the name of the person logged in, or Guest for a visitor who is not (see Guest visitor label).
  • [posttitle]: the title of the post or page.
  • [postid]: the number WordPress gives the post or page.

Your details

See Brand name and support email.

  • [brand]: your brand name.
  • [contact]: your support email address.

Change how a date looks

The date and time tags, [published] and [modified] take a format. It uses the same letters as WordPress’s own date settings (Settings → General, Date Format, Custom):

  • [y format="y"] shows the year in two digits.
  • [today format="j F Y"] shows the date with the month written out, such as 28 October and the year.
  • [time format="g:i a"] shows the time as 8:50 pm.

They also take a shift, to show another day than today: [today shift="+1 day"] shows tomorrow’s date. You can write the shift in English words, such as +2 weeks or -1 month.

Turn a tag off

All tags are on when you turn Dynamic Tags on. Turn one off when its name clashes with your theme The design of your whole site: its fonts, colours and where the menu and footer go. You pick it under Appearance, then Themes. or another plugin An add-on you install in WordPress to give your site new features. Gillish Cairnstone and Gillish Core are plugins., or when you do not want it used.

  1. Open the tab Dynamic Tags. The tags are listed in groups: Date & time, Content & metadata, Copyright, System & user, and Identity.

  2. Untick the tag.

  3. Press Save changes.

Its Status then reads Off, and a page shows the tag just as you typed it. To turn it on again, tick it and save.

Enable all tags and Disable all tags tick or untick every tag. Enable group and Disable group do the same for one group. Until you press Save changes, nothing has changed, and a status that will change reads, for example, Off (unsaved). Leave the page without saving, and the tags stay as they were.

A status of Conflict: name already taken means your theme or another plugin uses the same name first. Core then leaves that name to the other one, and a page shows what the other one puts there. The status is updated each time a page on the site is opened.

Count post views

[views] shows how many times a post or page was viewed. Core counts the views itself. This is on when you turn Dynamic Tags on.

  • Each view of a post or page counts once.
  • A visitor is counted once per post every 30 minutes, so opening a page again and again counts once. Core does not keep the visitor’s network address for this. It keeps a scrambled code of it for 30 minutes, then deletes it.
  • Editors and administrators who are logged in are not counted.

To stop counting, untick Count post views and save. [views] then keeps showing the number counted so far. Stop it also if another view counter plugin on your site uses the same storage name, so the two do not count each view twice.

View counter meta key is the name the count is stored under. It is post_views_count, the name many view counter plugins use, so [views] can show the count such a plugin has made. Change it only to read a count stored under another name. To change it back, type post_views_count and save.

Reading speed

[readtime] counts the words in the post or page and divides them by Reading speed (words per minute), rounded up to whole minutes. The speed is 200 when you install Core, and can be from 50 to 500. A number outside that is saved as the nearest one, 50 or 500.

For example, 330 words show 2 min at 200 words per minute, and 7 min at 50. Raise the speed for a site where readers skim, lower it for dense text. To change it back, set 200 and save.

Guest visitor label

[user] shows this word to a visitor who is not logged in. It is Guest when you install Core. Type another word, such as friend, and save. Leave it empty to go back to Guest.

Brand name and support email

Brand name is what [brand] shows. Leave it empty if your brand is your site’s title, and use [sitename] for that.

Support email is what [contact] shows: the address visitors should write to for help. It is kept apart from your site’s admin email on purpose, so the admin address is never shown on a page.

Both are empty when you install Core, and an empty one shows nothing. Core shows the text just as you typed it, so check the address before you save.

With a page cache

A page cache Saved copies, such as copies of your pages, that make the site load faster. After a change, you may have to clear them before visitors see the new version. saves a copy of each page and shows the same copy to every visitor. With one, [ip] and [user] show nothing, so one visitor’s address or name is never shown to the next. The tab Dynamic Tags then shows Full-page cache detected with the name of the cache. Core knows LiteSpeed Cache, WP Rocket, W3 Total Cache, WP Super Cache, Hummingbird, WP Fastest Cache, FlyingPress, Seraphinite Accelerator and Cache Enabler.

The other tags show what was true when the cache saved the page. The time, today’s date, the day, the week and the number of comments and views stay as they were until the cache saves the page again. The year, the copyright line and the site name change seldom, so they are rarely out of date. To show the current value again, empty the cache in your cache plugin.

Views are still counted with a page cache. The page itself tells Core about each visit, also when it comes from the cache. The rules are the same: once per visitor per post every 30 minutes, and editors and administrators are not counted.