Help with these plz

This topic contains 6 replies, has 3 voices, and was last updated by  Alex Rollin 6 years, 11 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket

Tagged: 

  • Author
    Posts
  • #411019

    Himadri Goswami
    Expired Member
    Post count: 86

    Hi,
    trying out two things.

    1.

    I wanted to add geodir-tags to a new tag in detail page. The name of the tab is specialities:

    I had modified the following code from formiddable form in a Tab. I can setup the new tab, but not able to show tags.

    This is my code `// this line tells the tabs function to run our new function to add a new tab
    add_filter(‘geodir_detail_page_tab_list_extend’, ‘geodir_detail_page_tab_list_extend’);
    // this function adds the tab to the tabs list (but not the content)
    function geodir_detail_page_tab_list_extend($tab_array)
    {
    // the $post var contains all the listing info so we can add conditions
    global $post;
    // only add the tab if the post type is

    gd_hotel

    and the email field has been added to the listing
    if ($post->post_type==’gd_hospitals’) {
    $tab_array[‘spl_tab’] = array(‘heading_text’ => ‘Specialities’,
    ‘is_active_tab’ => ”,
    ‘is_display’ => 1,
    ‘tab_content’ => ”,
    );
    }
    return $tab_array;
    }

    add_action(‘geodir_after_tab_content’, ‘geo_discussion_form_content’, 10, 1);
    // this function adds the content to our new tab
    function geo_discussion_form_content($tab)
    {

    if ($tab == ‘spl_tab’) {
    echo ‘geodir-tags’;
    }
    }`

    2. Secondly is there a way to add comments to geodirectory category archives? Please help me on this

    #411020

    Guust
    Moderator
    Post count: 29970

    A developer will have a look at your question in the new year.
    Thanks for your patience, and happy new year 🙂

    #411033

    Alex Rollin
    Moderator
    Post count: 27815

    Hello!

    We recommend that you use the built in functionality to add a tab with a fieldset so you can use the built in functionality to show the custom field within a fieldset that looks exactly like a new tab. You can follow this link here for how to do that: https://wpgeodirectory.com/docs/core-place-settings/#fieldset

    1# The code you have supplied will need a lot of customization, which we don’t provide here in the support forum. For example, does “geodir-tags” refers to a custom field? If the field is called “tags” it should be

    geodir_tags

    .
    Also,

    gd_hotel

    does not match

    gd_hospitals

    If you want to create your tab using code snippets, you can start here with the developer example:
    https://wpgeodirectory.com/add-a-new-tab-in-the-listing-detail-page/

    2# WordPress comments functionality works on non-GD pages, but GD templates only support reviews on Listing Detail pages.

    #411125

    Himadri Goswami
    Expired Member
    Post count: 86

    1# The code you have supplied will need a lot of customization, which we don’t provide here in the support forum.

    I have already achieved a new tab with the above code. I just need help to display tags here.
    ..and may be in this part `if ($tab == ‘spl_tab’) {
    echo ‘geodir_tags’;
    }
    }

    #411136

    Alex Rollin
    Moderator
    Post count: 27815

    Hello!

    For customizations, you should hire a developer to extend the code samples we have provided in the docs. You can consult a developer at the GD Experts site: https://geodirectoryexperts.com

    Does “geodir_tags” refers to a custom field? Or is that the “Hotel Tags” taxonomy?

    If it is the Taxonomy Tags, this isn’t available as a snippet now, but will be easier to do in the new version of GeoDirectory that will be available for testing soon. Keep your eye on the forum to find out about the release date.

    Thank you

    #411159

    Himadri Goswami
    Expired Member
    Post count: 86

    No geodir_tags not a custom tag. I want to display the geodirectory tags for the listing

    #411177

    Alex Rollin
    Moderator
    Post count: 27815

    Hello!

    We will be working on GD V2 to make this easier in the future. For now it is a customization and outside of what we can do in support.

    When you say tags, do you want them filtered for location, such that the tags link to the location page of the listing? Or is it ok if the tags just link to the base tag page?

    If the base page is ok, there are some threads related to it that could be helpful:

    https://wpgeodirectory.com/support/topic/feature-request-tags-on-listgrid-view/
    https://wpgeodirectory.com/support/topic/move-tags-and-create-a-break/

Viewing 7 posts - 1 through 7 (of 7 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
20% Discount Offer
Hurry! Get your 20% discount before it expires. Get 20% Discount