halalcompass
Forum Replies Created
-
AuthorPosts
-
February 19, 2015 at 9:23 am in reply to: Different days for events creates different listings #31357
Sounds great, thanks.
February 18, 2015 at 6:55 pm in reply to: Different days for events creates different listings #31297Has a solution been developed for this yet? I also require it to work as Greg has suggested.
The least that could be done is add the date on the same line as the title for multi-day events.
For example:
Music Festival – March 20th, 2015
Music Festival – March 21st, 2015The biggest problem everyone is having is that the listings look like duplicates.
Hi Gianni,
So I figured out a better solution to what we’ve both been looking for. I am now using the homepage map on the listing pages (which already uses the clusters and has the category toggles), and made a slight modification to the code in order to automatically detect the current posttype.
At the moment, it modifies one of the core GD files, but I am working on making it a separate widget so it doesn’t get lost with future updates.
In geodirectory-functions/map-functions/map_template_tags.php on line 244:
Replace this:$geodir_default_map_search_pt = get_option('geodir_default_map_search_pt');
With:
$geodir_default_map_search_pt = geodir_get_current_posttype();
Hope that helps!
February 6, 2015 at 12:59 pm in reply to: Display all listings for current CPT on listings map #30181I needed to to load automatically. I figured a solution by modifying the maps_template_tags.php file and changing the default CPT to get_current_posttype() function.
This was easy mod and works great without any load issues.
This worked wonderfully, thank you.
February 5, 2015 at 7:54 am in reply to: Display all listings for current CPT on listings map #30042Thank you for your responses.
Guust, I have tried using the homepage map on the listing page as a solution, but only one problem remains, which is it only loads the default CPT set in the GeoD settings, not the CPT of the listing page that it’s on.
If there is a way around this one issue, that would solve everything! Please let me know.
THANK YOU.
Please disregard this request. I have done it myself.
I forgot to mention that the IMAGES, HTML and CSS for the layout would be provided. I just need the PHP development part done. Thanks.
Just found a workaround to Gianni’s question which I also needed for how to enable map clusters on the listing page. Posting here for others:
https://wpgeodirectory.com/support/topic/clusters-for-listing-maps/
Thanks for your quick reply.
I actually do not need to show all CPTs in one map. Just all the markers of one CPT, but for the CPT listing page that the map is on. For example, if the map is on the “Restaurants” listing page, it will show only those markers by default. If it’s on the “Schools” listing page, then the schools markers by default.
This is how the current Listing Page Map works, but it doesn’t show all the markers at once, just the ones listed on the page. OR is there a way to modify his map to show all the markers instead of just the ones listed.
So will the feature being developed be able to do this? Any rough idea on when it may be released? This is an important feature crucial to our site. Is there a resource where I can commission custom GD modifications?
Thanks again for your help.
Sorry about that! I have turned it off now.
I have used this solution and it works fine, except after you enter the directions, it overflows onto whatever is below it.
I’ve discovered that this is due to the height being styled inline and there is no way to override it except by editing map_template_tags.php. But I would prefer not to edit any core files.
Any ideas?
Thanks.
I would be interested in this solution as well!
That worked wonderfully. Thank you.
Hmm, still not able to get this working. I also tried adding $post_images to the “global” but still nothing.
Here is the latest code I’m using.
add_action('geodir_details_main_content', 'geodir_detail_page_images_hc', 31); function geodir_detail_page_images_hc() { global $post, $post_images; $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; }
You may view the page here: http://halalcompass.com/places/toronto/schools/al-azhar-islamic-school/
Thanks for all your help.
-
AuthorPosts