Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › Help › Reply To: Help
Cheers mate, thought it would var_dump() it on the page. TBH the code i need to add the $pageposts is something along the lines below. I have a whole host of different custom fields that need to be brought out into the results, do you think it is possibly:
echo ‘<div class=”further-info”>’;
if(get_field(‘from-to-or-at’) == ‘from-to’):
echo ‘<p class=”fromto”><i class=”fa fa-road”></i>From: ‘ . get_field(‘from’) . ‘ To: ‘. get_field(‘to’) .'</p>’;
elseif(get_field(‘from-to-or-at’) == ‘at’):
echo ‘<p class=”fromto”><i class=”fa fa-road”></i> AT:’ .get_field(‘at’) . ‘</p>’;
endif;
echo ‘<p class=”delay-type”><i class=”fa fa-car”></i> ‘ . get_field(‘delay_type’) . ‘</p>’;
$countin = 0;
foreach($incidenttype as $value):
$countin++;
if($countin == 1):
echo ‘<p><i class=”fa fa-cogs”></i> Incident Type: ‘ . $value . ‘</p>’;
else:
echo ‘<p>’ . $value . ‘</p>’;
endif;
endforeach;
echo ‘<p><i class=”fa fa-clock-o”></i> ‘ . get_the_time() . ‘</p>’;
if(get_field(‘avoid’)):
echo ‘<p class=”avoid-p”><i class=”fa fa-warning”></i> Avoid</p>’;
endif;
echo ‘</div>’;
if(get_field(‘avoid’)):
echo ‘<i class=”fa fa-warning-large fa-warning”></i>’;
endif;