Help
This topic contains 7 replies, has 3 voices, and was last updated by David Rodríguez 6 years, 8 months ago.
We have moved to a support ticketing system and our forums are now closed.
Open Support Ticket-
AuthorPosts
-
March 4, 2019 at 6:50 pm #472418
Hello, through a third party add-on, I have created a slide with your CPT. I was able to rescue the code of the categories of GD-Place (attached image) so that they appeared in the elements of the slide, but not with the location of the CPT, as they appear in the file page (attached image).
I also attach the code with which I rescue the categories for the html in the slide, and below the one I am creating for the location … I think what I need is the name of the column of a table…
Can you help me?
<div class=”geodir_post_meta geodir-field-post_category”><span class=”geodir_post_meta_icon geodir-i-taxonomy” style=””><i class=”fab fa-phabricator” aria-hidden=”true”></i><span class=”geodir_post_meta_title”>Categoría: </span></span> {categories|taxonomy:gd_placecategory} </div>
<div align=”center”><span class=”geodir_post_meta_icon geodir-i-address” style=””><i class=”fas fa-map-marker-alt” aria-hidden=”true”></i><span class=”geodir_post_meta_title”>Localización: </span></span><br> <span itemprop=”addressLocality”>{categories|taxonomy:addressRegion}</span><br> <span itemprop=”addressRegion”>Ciudad</span></div>
March 4, 2019 at 6:52 pm #472419I forgot to attach the images
March 4, 2019 at 7:37 pm #472434Hi David,
Thanks for your post. As you know, we do not provide support for 3rd party plugins. However, could you elaborate a little bit more about what you’re trying to achieve there? Perhaps you can share the URL of the page in questions and share some screenshots about what you’re trying to do here.
Thanks!
March 5, 2019 at 9:09 am #472542Yeah sure. On this page you will see that there is a slide with your post type of GD_place. With this slide we have managed to rescue the categories of your posts, through this code that is inserted as HTML
<div class = ”geodir_post_meta geodir-field-post_category”> <span class = ”geodir_post_meta_icon geodir-i-taxonomy” style = ””> <i class = ”fab fa-phabricator” aria-hidden = ”true”> </ i> <span class = “geodir_post_meta_title”> Categoría: </span> </span> {categories | taxonomy: gd_placecategory} </div>
As it appears in the first image.
In the second image, it shows as in the elements of the file page, we show in addition to the category, the location of the element. And that part is what we need to rescue, with a code that should be similar to this<div align = “center”> <span class = “geodir_post_meta_icon geodir-i-address” style = ””> <i class = ”fas fa-map-marker-alt” aria-hidden = ”true”> </ i > <span class = “geodir_post_meta_title”> Localización: </span> </span> <br> {categories | taxonomy: addressRegion} </div>
{categories | taxonomy: addressRegion}
It is in this part where we do not know how to call the function. To show the category of the item,is {categories | taxonomy: gd_placecategory}
but for the location we do not know what it is. Thank youMarch 5, 2019 at 4:38 pm #472636Hi David,
Thanks for your reply. I see what you mean now. Unfortunately, we do not provide assistance for 3rd party plugins and please contact the plugin author for further assistance.
Thanks!
March 5, 2019 at 5:19 pm #472639OK perfect. I have to ask a third party to tell me what hook, what metadata or your function name, whatever it is, that I must replace the gd_placecategory so that I can find location. Thank you very much for your (little) kindness.
March 5, 2019 at 5:39 pm #472654the table where locations are associated with listings is geodir_gd_place_details
Thanks
March 5, 2019 at 7:28 pm #472716Oh! Thank you very much Paolo.
-
AuthorPosts
We have moved to a support ticketing system and our forums are now closed.
Open Support Ticket