AddSearch allows filtering and sorting based on the publishing date of the web page. So that AddSearch can use the exact publishing dates of your web pages, you need to define them first.

You can inform AddSearch’s crawler of the publishing date with the time and article:published meta tags. If your web page doesn’t have these tags defined AddSearch uses the time when the page was added to the search index.

Instructions

Follow the instructions below to set up the publishing date on your web pages.

Set the publishing date using the article:published_time meta tag

You can set the publishing time with an article:published_time meta tag, placed in the HEAD section of your page. The date needs to be in ISO 8601 format.

<meta property="article:published_time" content="2019-08-14" />

Set publishing date using time tags

You can also set the publishing time using the time tag with a datetime attribute. You can include these tags anywhere on the page. The typical placement is around the text which states the publishing date & time.

If the page contains many time tags, AddSearch looks for one that has a pubdate attribute. The date needs to be in ISO 8601 format, for example:

<time datetime="2019-11-15T07:35:40+03:00">
November 15th 2019 at 7.35am
</time>

For setting up sorting and filtering follow the instructions for the Widget and the Separate Results Page view. You can also use the publishing time with Date Boost to increase the importance of the most recent content.

Was this helpful?

Need more help?

We’re always happy to help with code or other questions you might have. Search our documentation, contact support, or connect with our sales team.