Available shortcodes

A shortcode is a short instruction in square brackets that you put into a page’s content, and the intranet replaces it with something built on the fly: a list of the latest news, the people in a team, a grid of tiles, a collapsible section. Govintra adds the shortcodes below to the standard WordPress ones. Each links to a page that explains what it shows and every attribute it takes.

Insert a shortcode

Put the cursor where the content should appear and select the shortcode button on the editor toolbar, the one showing angle brackets. Choose the shortcode, fill in its boxes and select Insert. The inserter writes the shortcode with the right attribute names, so you cannot mistype them. You can also type a shortcode straight into the Visual or Text tab. See Classic Editor toolbar menu.

Shortcodes that depend on a module only appear in the inserter, and only work, while that module is switched on under Options, Modules. They are marked below.

Lists of content

  • listposts: a simple linked list of the latest news, news updates, blog posts or upcoming events, filtered by category or tag.
  • shorttags: a linked list of items carrying a tag, from any kind of content, each ordered in the way that suits its type.
  • listtags: a grid of cards for everything carrying a tag, with an optional date and excerpt on each card.
  • listdocs: a list of documents from the Media Library, filtered by document type or category, with or without their descriptions.
  • listevents: the next few events as compact cards with the date, title, time and optionally the venue. Needs the Events module.
  • teamnews: the latest team news from one or more news groups, as cards or a compact list. Needs the Teams module and Team news pages.

Page structure and navigation

  • landingpage and childblocks: a page’s child pages as cards or as a list, for a section landing page that updates itself.
  • pagetree: a nested bulleted list of every page beneath a parent, or of the whole site as a sitemap.
  • cardgrid: a hand-made grid of tiles, each with a label, a link and an optional image.
  • expand: a collapsible section that opens when its heading is selected, with expandsub1 to expandsub3 for sections nested inside it.

People and teams

  • people: staff cards for one person, by ID or email address, or for everyone in a team and its sub-teams. Needs the Staff directory module.
  • usertags: staff cards for everyone carrying a tag on their profile, such as first aiders, optionally grouped by location. Needs the Staff directory module.
  • A list of teams is no longer a shortcode. Use the Teams template, which lists every team as an expandable tree.

Events

  • eventadd: the “add to calendar” buttons for one event, wherever you need them. Needs the Events module.
  • listevents: see Lists of content above.

From plugins

  • table: a TablePress table, inserted with the Table button rather than the shortcode inserter.
  • govintra_chat: the AI chat assistant on a page, from the (Govintra) Chat plugin.
  • agento_intel_rag and agento_intel_search: the AI question box and AI search on a page, from the Agento Intelligence plugin.

Standard WordPress shortcodes

WordPress’s own shortcodes work as well: caption for a captioned image, gallery for a set of images, and embed for a video or other media from another site. The editor adds the first two for you when you insert an image or a gallery. See Embed video, audio and animated GIFs.

Show a shortcode without running it

To show a shortcode as text on a page, as this site does, type it in the Text tab with the brackets as [ and ]. In the Visual tab the editor turns them back into real brackets and the shortcode runs.