Accommodation list layout examples
SELECT SQL_CALC_FOUND_ROWS diws_posts.*, 1 rooms_available, 0 rooms_booked , IFNULL((SELECT price_meta2.meta_value + 0 FROM diws_postmeta price_meta2 WHERE price_meta2.post_id=diws_posts.ID AND price_meta2.meta_key='_accommodation_min_price:2024-07-27:2026-07-27' LIMIT 1), 0) accommodation_price , IFNULL((SELECT price_meta3.meta_value + 0 FROM diws_postmeta price_meta3 WHERE price_meta3.post_id=diws_posts.ID AND price_meta3.meta_key='accommodation_static_from_price' LIMIT 1), 0) accommodation_static_price
FROM diws_posts
WHERE 1=1 AND diws_posts.post_type = 'accommodation' AND ((diws_posts.post_status = 'publish'))
GROUP BY diws_posts.ID HAVING 1=1
ORDER BY diws_posts.post_title ASC
LIMIT 0, 1
SELECT SQL_CALC_FOUND_ROWS diws_posts.*, 1 rooms_available, 0 rooms_booked , IFNULL((SELECT price_meta2.meta_value + 0 FROM diws_postmeta price_meta2 WHERE price_meta2.post_id=diws_posts.ID AND price_meta2.meta_key='_accommodation_min_price:2024-07-27:2026-07-27' LIMIT 1), 0) accommodation_price , IFNULL((SELECT price_meta3.meta_value + 0 FROM diws_postmeta price_meta3 WHERE price_meta3.post_id=diws_posts.ID AND price_meta3.meta_key='accommodation_static_from_price' LIMIT 1), 0) accommodation_static_price
FROM diws_posts
WHERE 1=1 AND diws_posts.post_type = 'accommodation' AND ((diws_posts.post_status = 'publish'))
GROUP BY diws_posts.ID HAVING 1=1
ORDER BY diws_posts.post_title ASC
LIMIT 0, 3
Apartament Bobâlnei din Cluj-Napoca
Cluj-Napoca, strada Bobâlnei nr. 46, județul Cluj
Tarif de la:
Lei
SELECT SQL_CALC_FOUND_ROWS diws_posts.*, 1 rooms_available, 0 rooms_booked , IFNULL((SELECT price_meta2.meta_value + 0 FROM diws_postmeta price_meta2 WHERE price_meta2.post_id=diws_posts.ID AND price_meta2.meta_key='_accommodation_min_price:2024-07-27:2026-07-27' LIMIT 1), 0) accommodation_price , IFNULL((SELECT price_meta3.meta_value + 0 FROM diws_postmeta price_meta3 WHERE price_meta3.post_id=diws_posts.ID AND price_meta3.meta_key='accommodation_static_from_price' LIMIT 1), 0) accommodation_static_price
FROM diws_posts
WHERE 1=1 AND diws_posts.post_type = 'accommodation' AND ((diws_posts.post_status = 'publish'))
GROUP BY diws_posts.ID HAVING 1=1
ORDER BY diws_posts.post_title ASC
LIMIT 0, 7
Apartament Adela din Sibiu
Sibiu, strada Semaforului, nr. 6 ,județul SibiuTarif de la: LeiApartament Ana din Sibiu
Sibiu, str. Profesor Aurel Popa, nr. 1-3, județul SibiuTarif de la: LeiApartament Bobâlnei din Cluj-Napoca
Cluj-Napoca, strada Bobâlnei nr. 46, județul ClujTarif de la: LeiApartament Bonjour din Mangalia
Mangalia, str. Nicolae Iorga, nr. 2E, județul ConstanțaTarif de la: LeiApartament David din Sibiu
Sibiu, strada Avram Iancu, nr. 6, județul SibiuTarif de la: LeiApartament Emma din Sibiu
Sibiu, str. Luptei, nr. 40, județul SibiuTarif de la: LeiApartament Gabizz Apartaments din Constanța
Constanța, str. Intrarea Maior Şofran, nr.3, bl.C1, județul ConstanţaTarif de la: Lei
SELECT SQL_CALC_FOUND_ROWS diws_posts.*, 1 rooms_available, 0 rooms_booked , IFNULL((SELECT price_meta2.meta_value + 0 FROM diws_postmeta price_meta2 WHERE price_meta2.post_id=diws_posts.ID AND price_meta2.meta_key='_accommodation_min_price:2024-07-27:2026-07-27' LIMIT 1), 0) accommodation_price , IFNULL((SELECT price_meta3.meta_value + 0 FROM diws_postmeta price_meta3 WHERE price_meta3.post_id=diws_posts.ID AND price_meta3.meta_key='accommodation_static_from_price' LIMIT 1), 0) accommodation_static_price
FROM diws_posts
WHERE 1=1 AND diws_posts.post_type = 'accommodation' AND ((diws_posts.post_status = 'publish'))
GROUP BY diws_posts.ID HAVING 1=1
ORDER BY diws_posts.post_title ASC
LIMIT 0, 3
Apartament Bobâlnei din Cluj-Napoca
Cluj-Napoca, strada Bobâlnei nr. 46, județul Cluj
Tarif de la:
Lei
SELECT SQL_CALC_FOUND_ROWS diws_posts.*, 1 rooms_available, 0 rooms_booked , IFNULL((SELECT price_meta2.meta_value + 0 FROM diws_postmeta price_meta2 WHERE price_meta2.post_id=diws_posts.ID AND price_meta2.meta_key='_accommodation_min_price:2024-07-27:2026-07-27' LIMIT 1), 0) accommodation_price , IFNULL((SELECT price_meta3.meta_value + 0 FROM diws_postmeta price_meta3 WHERE price_meta3.post_id=diws_posts.ID AND price_meta3.meta_key='accommodation_static_from_price' LIMIT 1), 0) accommodation_static_price
FROM diws_posts
WHERE 1=1 AND diws_posts.post_type = 'accommodation' AND ((diws_posts.post_status = 'publish'))
GROUP BY diws_posts.ID HAVING 1=1
ORDER BY diws_posts.post_title DESC
LIMIT 0, 3
Villa Levoslav House din Sibiu
Sibiu, str. General Magheru, nr. 12, judeţul Sibiu
Tarif de la:
Lei
SELECT SQL_CALC_FOUND_ROWS diws_posts.*, 1 rooms_available, 0 rooms_booked , IFNULL((SELECT price_meta2.meta_value + 0 FROM diws_postmeta price_meta2 WHERE price_meta2.post_id=diws_posts.ID AND price_meta2.meta_key='_accommodation_min_price:2024-07-27:2026-07-27' LIMIT 1), 0) accommodation_price , IFNULL((SELECT price_meta3.meta_value + 0 FROM diws_postmeta price_meta3 WHERE price_meta3.post_id=diws_posts.ID AND price_meta3.meta_key='accommodation_static_from_price' LIMIT 1), 0) accommodation_static_price
FROM diws_posts
WHERE 1=1 AND diws_posts.post_type = 'accommodation' AND ((diws_posts.post_status = 'publish'))
GROUP BY diws_posts.ID HAVING 1=1
ORDER BY diws_posts.post_title ASC
LIMIT 0, 3
Apartament Adela din Sibiu
Sibiu, strada Semaforului, nr. 6 ,județul Sibiu
Tarif de la:
Lei
Apartament Ana din Sibiu
Sibiu, str. Profesor Aurel Popa, nr. 1-3, județul Sibiu
Tarif de la:
Lei
Apartament Bobâlnei din Cluj-Napoca
Cluj-Napoca, strada Bobâlnei nr. 46, județul Cluj
Tarif de la:
Lei
SELECT SQL_CALC_FOUND_ROWS diws_posts.*, 1 rooms_available, 0 rooms_booked , IFNULL((SELECT price_meta2.meta_value + 0 FROM diws_postmeta price_meta2 WHERE price_meta2.post_id=diws_posts.ID AND price_meta2.meta_key='_accommodation_min_price:2024-07-27:2026-07-27' LIMIT 1), 0) accommodation_price , IFNULL((SELECT price_meta3.meta_value + 0 FROM diws_postmeta price_meta3 WHERE price_meta3.post_id=diws_posts.ID AND price_meta3.meta_key='accommodation_static_from_price' LIMIT 1), 0) accommodation_static_price
FROM diws_posts
WHERE 1=1 AND diws_posts.post_type = 'accommodation' AND ((diws_posts.post_status = 'publish'))
GROUP BY diws_posts.ID HAVING 1=1
ORDER BY diws_posts.post_title DESC
LIMIT 0, 3