halalcompass
Forum Replies Created
Viewing 7 posts - 16 through 22 (of 22 total)
Viewing 7 posts - 16 through 22 (of 22 total)
Spoke too soon for the image thumbnails. I used the code below, but thumbnails don’t show. Any idea where I went wrong?
add_action('geodir_details_main_content', 'geodir_detail_page_images_hc', 31);
function geodir_detail_page_images_hc() {
$post_images = geodir_get_images($post->ID,'thumbnail');
$thumb_image = '';
if(!empty($post_images)){
foreach($post_images as $image){
$thumb_image .= '<a href="'.$image->src.'">';
$thumb_image .= geodir_show_image($image,'thumbnail',true,false);
$thumb_image .= '</a>';
}
}
echo $thumb_image;
}
Thank you very much! This was exactly what I was looking for. I probably came across it in custom_functions.php but not knowing knowing PHP fluently, I didn’t realize I could just use that part.
For anyone interested, I basically placed these each in their own function, and then used an action to load each piece on the page.
I figured out one way to do this via CSS:
span[itemprop=”streetAddress”]:after {
content: “, “;
}
If there is a better way please share!
Thanks.
Thanks I was looking for a way to remove the line breaks.
Is there a way to add commas after each field? So that it would look something like: 100 McLevin Avenue, Toronto, Ontario, M1B 5K1 Canada
Thank you.
Thank you, that helps but requires a lot of digging around.
It would be great to see some kind of layout editor in the future, with placeholders/shortcodes for each piece of listing information.
Over to the request forum!
Would it be possible to enlighten those who couldn’t figure it out?
I’m familiar with hooks and actions, but can’t fine what to remove and add.
Thanks.
I have the same issue with requiring the long/lat.
Pawon, your semi-solution worked great! A bit of a pain to go into each one after, but the best workaround so far.
Thanks.
Get the latest news, tips, and exclusive content directly in your inbox.
Confirm your email address, and instantly receive the discount code :)