1. Home
  2. Knowledge Base
  3. Posts Table Pro
  4. Posts Table Pro Features
  5. Links in the posts table

Links in the posts table

Posts Table Pro lets you control what happens when someone clicks on an item in the table.

The links option controls which columns in the table are formatted as hyperlinks or plain text. For example, if you are displaying featured images in your table, then you can choose whether or not these can be clicked on to access the single post page.

By default, the following columns are formatted as links: idtitlecategoriestags, author, image, and any custom taxonomy. Clicking on a category, tag, author, or custom taxonomy term will filter the table for that value. (You can change this using the search on click option, below.) Clicking on an id, title or image will take the user to the single post page.

WordPress table default column links

You can control which columns are clickable by adding the links option to the posts table shortcode:

  • Add links="all" to make all possible links in the table clickable.
  • Use links="none" to disable all links.
  • To specify exactly which columns are clickable, add a comma separated list in the following format: links="id,title,categories".

This example shortcode will create a table with columns for image, title, categories and tags. Only the image and title columns will be clickable: [posts_table columns="image,title,categories,tags" links="image,title"]

Search on click

By default, clicking on a category, tag, author or custom taxonomy term in the table will search (i.e. filter) the table by that value. This is a quick way of filtering the table if you have lots of posts.

You can disable this search_on_click feature so that when someone clicks on a category, tag, author or custom taxonomy term, then they will be taken to the relevant category/tag/author/taxonomy archive instead.

Example: [posts_table columns="title,categories,tags" search_on_click="false"]

Was this article helpful?

Related Articles