<?php
$args = array(
'post_type' => 'page',
- 'post__in' => array(276,275,274,273,983,981,985)
-// 'post__in' => array(69,71,73,75)
+ 'post__in' => array(276,275,274,273,983,981,985),
+ 'posts_per_page' => -1,
+ 'numberposts' => -1
+// 'post__in' => array(69,71,73,75, 77, 79)
);
$posts = get_posts($args);
var id;
function get_id(el){
- console.log(el.alt);
+// console.log(el.getAttribute("data-id"));
id = el.getAttribute("data-id");
-// window.location.href = site_array[el.getAttribute("data-id")];
+ window.location.href = site_array[el.getAttribute("data-id")];
+// console.log(site_array[el.getAttribute("data-id")]);
}
</script>