From: Anthony Talarico Date: Tue, 2 Aug 2016 17:37:52 +0000 (-0400) Subject: added parameter for get posts args to unlimit the number of posts displayed X-Git-Tag: v1.0.0^2~192 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=66cebe1041729b473ca97145bf060dfa50773cbe;p=WP-Themes%2Fpetoskeyarea.git added parameter for get posts args to unlimit the number of posts displayed --- diff --git a/front-page.php b/front-page.php index d345aa3..822f9b0 100644 --- a/front-page.php +++ b/front-page.php @@ -62,8 +62,10 @@ '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); @@ -80,9 +82,10 @@ foreach ($posts as $p){ 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")]); }