Before you get started

The public page can be filtered on dates, locations, entries and tags by adding options to the URL.

Your normal public page URL will look something like this:

https://bookwhen.com/example

Your public page will include your Bookwhen account in place of 'example'

How to create filters

Date Filter

To filter your entries to only show from a specific date, add ?start=2020-01-01 to the end of your public page url. You must keep this date format, but can choose any date, including past and future.

Here's an example:

https://bookwhen.com/example?start=2020-01-01

Location Filter

To filter your entries by a specific location you will require the unique location code, which you can find in that location's edit page:

Now you can create your filter URL, which in this case would need to be appended with ?location=epojhv6suohe

Here's how that would look:

https://bookwhen.com/example?location=epojhv6suohe

Remember, that URL will only include entries which have also been tagged with that exact same location.

Entry Filter

Entry Filters work in the same way as location filters. You can get the entry code from the URL when editing the entry:

Your filter URL in this case would be appended with ?entry=8yr7put8ede4

Here's how that would look:

https://bookwhen.com/example?entry=8yr7put8ede4


If you wanted to filter on multiple entries, we would recommend using tags, see below.

Tag Filter

Tags are a great way to group different entries. For example, you might want a tag for all your adult classes, and one tag for all your children's classes. 

Tag 1 = adults
Tag 2 = children

Once you've applied these tags to your relevant entries, you can easily filter by these, by just adding ?tag=adults or ?tag=children

Here's an example:

https://bookwhen.com/example?tags=adults


Note:

Tags are case sensitive, so make sure your URL reflects any capitals. If your tags have spaces, like "adult classes", you will need to replace the tag in the URL with a + like this:

https://bookwhen.com/example?tags=adult+classes

Using your filters

Now that you've created filter URLs you can insert these to make it easier for your customers to navigate your booking page. In your public page description, you can either link out to your filtered pages, create hyperlinks or use create filter buttons like this:

Read how to create filter buttons here and view the above as a live example here.


-----------------------------------------------------------------------------------------------------------------------------

Filtering iframes

You can filter iframes in exactly the same way as you would filter a public page URL, for example say you have copied the follow iframe code from the public page settings:

<iframe src="https://bookwhen.com/example/iframe" frameborder="0" scrolling="yes" seamless="seamless" style="display:block;border:none;width:100%;height:900px;"></iframe>

Say you would like only display events after 1st of January 2020 in your filter. You would modify the URL in the iframe code to resemble:

https://bookwhen.com/example?start=2020-01-01

This will mean the iframe code you end up using will look like:

<iframe src="https://bookwhen.com/example?start=2020-01-01" frameborder="0" scrolling="yes" seamless="seamless" style="display:block;border:none;width:100%;height:900px;"></iframe>

Did this answer your question?