while ( have_posts() ) :
the_post();
$args = [
'post_type' => 'page',
'posts_per_page' => 100,
// 'post__not_in' => [ get_the_ID() ], // Раскомментируйте, если хотите исключить текущую страницу
'meta_query' => [
[
'key' => '_wp_page_template',
'value' => 'page-room.php'
]
]
];
$my_pages = new WP_Query( $args );
?>
<div class="d-flex justify-content-around my-1">
<?php
if ( $my_pages->have_posts() ) :
while ( $my_pages->have_posts() ) : $my_pages->the_post();
the_title( '<a href="' . esc_url( get_permalink() ) . '"class="btn btn-secondary">' , '</a>' );
endwhile;
endif;
wp_reset_postdata();
?>
</div>
{
"id": "28710376298",
"name": "017cb83b37f9e18db3d2f4c38e743d8093b44d7fea",
"description": "",
"count_views": "0",
"count_faves": "0",
"count_comments": "0",
"date_taken": "2016-12-18 14:59:02",
"count_tags": "0",
"count_notes": "0",
"rotation": 0,
"date_imported": "2018-06-05 06:12:39",
"photopage": "https://www.flickr.com/",
"original": "https://live.staticflickr.com/",
"license": "All Rights Reserved",
"exif": {
"XResolution": "72",
"YResolution": "72",
"Software": "10.1.1",
"ModifyDate": "2016:12:18 14:59:02",
"ExposureTime": "0.03 sec (1/33)",
"FNumber": "f/2.4",
"ExposureProgram": "Program AE",
"ISO": "200",
"DateTimeOriginal": "2016:12:18 14:59:02",
"CreateDate": "2016:12:18 14:59:02",
"BrightnessValue": "2.130179685",
"ExposureCompensation": "0 EV",
"MeteringMode": "Multi-segment",
"Flash": "No flash function",
"FocalLength": "2.2 mm",
"SubSecTimeOriginal": "359",
"SubSecTimeDigitized": "359",
"ColorSpace": "sRGB",
"SensingMethod": "One-chip color area",
"CustomRendered": "Unknown (3)",
"ExposureMode": "Auto",
"WhiteBalance": "Auto",
"FocalLengthIn35mmFormat": "31 mm",
"SceneCaptureType": "Standard",
"LensInfo": "2.15mm f/2.4",
"LensMake": "Apple",
"LensModel": "iPhone 5s front camera 2.15mm f/2.4",
"RunTimeFlags": "Valid",
"RunTimeValue": "362488019713458",
"RunTimeEpoch": "0",
"RunTimeScale": "1000000000",
"HDRImageType": "HDR Image",
"GPSLatitude": "53 deg 11' 4.54\" N",
"GPSLongitude": "44 deg 56' 50.46\" E",
"GPSAltitudeRef": "Above Sea Level",
"GPSAltitude": "241.3738318 m",
"GPSTimeStamp": "11:59:01",
"GPSSpeedRef": "km/h",
"GPSSpeed": "0",
"GPSImgDirectionRef": "True North",
"GPSImgDirection": "199.6383333",
"GPSDestBearingRef": "True North",
"GPSDestBearing": "19.63833333",
"GPSDateStamp": "2016:12:18",
"GPSHPositioningError": "5 m",
"CreatorTool": "10.1.1",
"RegionType": "Face",
"RegionAreaY": "0.343750",
"RegionAreaW": "0.178125",
"RegionAreaX": "0.476562",
"RegionAreaH": "0.237500",
"RegionAreaUnit": "normalized",
"RegionExtensionsAngleInfoYaw": "0",
"RegionExtensionsAngleInfoRoll": "240",
"RegionExtensionsConfidenceLevel": "247",
"RegionExtensionsTimeStamp": "2147483647",
"RegionExtensionsFaceID": "5",
"RegionAppliedToDimensionsH": "960",
"RegionAppliedToDimensionsW": "1280",
"RegionAppliedToDimensionsUnit": "pixel",
"CodedCharacterSet": "UTF8",
"DigitalCreationTime": "14:59:02",
"DigitalCreationDate": "2016:12:18",
"DateCreated": "2016:12:18",
"TimeCreated": "14:59:02"
},
"groups": [
],
"albums": [
],
"tags": [
],
"people": [
],
"notes": [
],
"privacy": "private",
"comment_permissions": "any flickr member",
"tagging_permissions": "people you follow",
"safety": "safe",
"comments": [
],
"geo": {
"latitude": "53184594",
"longitude": "44947350",
"accuracy": "16"
}
}
парсим файл .json командой
curl
и фильтруем необходимые значения через| jq -r .id
.Но не понимаю как подставить полученное значение в имя файла, exif данные которого мы изменяем, и как это объединить с
exiftool
?