Silvia Frati
Forum Replies Created
-
AuthorPosts
-
Hi Alex,
It is not the neighborhood, its something in the middle of town and region, or to say it in another way, it rappresent a collection of town.
My testing website is only local on my machine atm, so i cannot provide any link/login credentials. Actually i think it’s not needed, i just wanted to know if this is feasible with the existing GD structure.
This image is just for example purpose, the example itself has no meaning in real world in USA, but it will help describe what i need. Given the example image think as if: “Bethesda, Silve Spring, Adelphi, College Park, Hyattsville” are a group of town called “OurGroupOfTown”.
I would need a way to search over this “custom groups” of town, GD allows to search for single town (like Bethesda of our example map) or region: “State of Washington”.
That’s why i was asking if it was possible to use GD CPT to create the list of “OurGroupsOfTowns). I don’t need a place to to define which towns form which GroupOfTown, i just want a list of those and to be able to search inside that.
Hope that’s more clear now,
Thank you,
DiegoJanuary 5, 2018 at 9:04 am in reply to: Category icons for map marker != popular category widget #411503Hello stiofan, my bad i didn’t explain the case i need. What i’m trying to achieve is to have “big” (90×90) custom images for popular category output and small image (30×30) for map marker. One of the way to do so is (since i can’t actually choose 2 images for one category in the back-end ) is to do the following:
1- Assign an image to the category choosing the small one (30×30), filename: myimg.png
2- Manually upload via Wp media library another image (same look as the other one but bigger size 90×90) with filename: myimg-big.pngNow i would need the filters i was speaking of to modify the icon url when rendering the popular category widget and append “-big” to the filename part.
If this can’t be done i guess i’ll just use big images directly in the backend and try to resize via css or gmap configs the marker icon size.
Please say if it’s not clear yet,
Cheers
January 4, 2018 at 2:17 pm in reply to: Category icons for map marker != popular category widget #411419Thank you for the replies.
@alex: I’ve saw that already but that’s not helping. The filter is called everytime one element needs to fetch category icons, and map marker share the same function call with other elements.
@stiofan: Unfortunatly that doesn’t look the case, I’m inspecting the code with a debugger and when for example i load the detail page i never end inside admin-ajax.php.
If you check for example: wp-content/plugins/geodirectory/geodirectory_hooks_actions.php you will see:
if (!is_admin()) { .... add_action('the_post', 'create_marker_jason_of_posts'); // Add marker in json array, Map related filter }
That action is actually firing the geodir_get_term_icon() for the detail map marker.
What i suggest is to add more apply_filters that let developers the freedom to inject/modify the behaviour. I tried a dirty hack but the geodir_get_term_icon() function get called many times and there’s not always an easy way to detect whether it’s a Google Map marker call or other elements call.
Hello, i was going around the forum and i tried to visit your site, it actually loads for me.
See attachment
Hello,
Thank you for the kind and fast answer. In the while i found an hackish way to perform what i want w/o destroying your base code.
I’m looking forward for the new update.
Cheers
-
AuthorPosts