- This topic has 4 replies, 2 voices, and was last updated 11 years, 1 month ago by .
Viewing 5 posts - 1 through 5 (of 5 total)
Viewing 5 posts - 1 through 5 (of 5 total)
These forums are now closed and remain for historical purposes.
None of the content applies to the new version 3. For support, get in touch via our contact form.
Forums › Forums › Search & Filter Pro › PHP code to display posts id-s
Hey Emil I’m not sure I follow you, can you explain a bit further?
Thanks
Just found the solution with this code used in a template.
<?php
if( $query->have_posts() ) {
$list = array();
while ($query->have_posts()) : $query->the_post();
$item = get_the_ID();
if ($item) $list[] = "$item";
endwhile;
echo implode(',',$list) ;
}
?>