As you can see in the center-top, there is a tab-menu showing all the apartments from this house in different categories/tabs (amount of persons).
Now, as a visitor chooses to click on f.e. a 5-Persons appartment, when he gets to the new site of the 5-persons apartment, the tab-navigation gets resetted and shows the 2 person category again. Here is the problem: logically thinking it should now show the 5 persons-tab, and not be resetted on every reload…
Is there a way to ask the database, what kind of apartment this is, so it can show the right tab?
The tab-navigation is created with the help of a theme-shortcode. Can the tab somehow stay on the same tab that was clicked instead of being resetted everytime?