Shortcodes

Using WordPress Shortcodes

We use self-developed routine to create these references.

Flags

We use a shortcode called rxf to create the flags.

[rxf c="<id>"]

“c” stands for country and you enter the individual country code. See table below.

257 Flags are available. Here is a list of those countries used by us so far:

 CountryShortcodeResult
adAndorra[rxf c="ad"]hello
aeUnited Arab Emirates[rxf c="ae"]hello
atAustria[rxf c="at"]hello
beBelgium[rxf c="be"]hello
chSwitzerland[rxf c="ch"]hello
cnChina[rxf c="cn"]hello
czCzech Republic[rxf c="cz"]hello
deGermany[rxf c="de"]hello
dkDanmark[rxf c="dk"]hello
eeEstland[rxf c="ee"]hello
esSpain[rxf c="es"]hello
fiFinland[rxf c="fi"]hello
frFrance[rxf c="fr"]hello
gbUnited Kingdom[rxf c="gb"]hello
huHungaria[rxf c="hu"]hello
ieIreland[rxf c="ie"]hello
itItaly[rxf c="it"]hello
jmJamaica[rxf c="jm"]hello
ltLithuania[rxf c="lt"]hello
lvLatvia[rxf c="lv"]hello
nlThe Netherlands[rxf c="nl"]hello
noNorway[rxf c="no"]hello
plPoland[rxf c="pl"]hello
ptPortugal[rxf c="pt"]hello
ruRussia[rxf c="ru"]hello
seSweden[rxf c="se"]hello
usUnited States[rxf c="us"]hello
unknownUnknown country[rxf c="unknown"]hello

Here is a list with all codes: https://en.wikipedia.org/wiki/List_of_ISO_3166_country_codes

Reference to previous posts or pages

We use a shortcode called rxl, which returns a permalink (permanent URL of an object).

[rxl id=<id>]

Optionally you can create a link to the story, but with another text.

[rxl id=<id> title="<custom title>"]

<id> is replaced by the ID of the post or page that we want to refer to.
In the text, the shortcode is then replaced by the title of the post or article as a link.
The id of a post or article can be retrieved on the individual “All Post” or “All Pages” screen.

title="<custom title>" is used if you don’t want to display the title of the referenced article but a custom text that has a link to the referenced article.

For example the post “Hayden Paddon to compete in GRC” has an ID of 405.
This is the result of [rxl id=405]: Hayden Paddon to compete in GRC
This is the result of [rxl id=405 title="see this article"]: see this article