Featured Listing Edit?

This topic contains 17 replies, has 2 voices, and was last updated by  riobravomedia 4 years, 1 month ago.

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

Open Support Ticket
  • Author
    Posts
  • #536079

    riobravomedia
    Expired Member
    Post count: 361

    Hello,

    I would like to edit the text on the Featured Badge for a Featured Listing

    I have been looking at this page but didn’t find what I needed. https://wpgeodirectory.com/docs-v2/geodirectory/featured-listings/

    Let me just share what I am trying to accomplish and maybe you have another suggestion. Because of the Coronavirus our restaurants are only doing takeout or delivery. I want to be able to mark the restaurant listings with a badge like the Featured but have it say “Takeout or Delivery”. And I want it to be searchable on the search page.

    I also want to make it easy to display on the home page listing cards display.

    Thoughts on how to accomplish this?

    #536085

    Guust
    Moderator
    Post count: 29970

    Create a SELECT field with the options you want.
    Then add that field using the GD Badge shortcode or element to the GD Archive Item page, and add it to the Advanced Search.

    https://wpgeodirectory.com/docs-v2/design/gd-badge/

    Thanks

    #536101

    riobravomedia
    Expired Member
    Post count: 361

    Guust,

    I am really struggling with adding a Badge. I want to add the badge to the Listing Cards and to the Listing Details. I just have to say I always struggle with a few things with GD.

    1. Lack of good support docs
    2. Lack of detail when reaching out to support.
    3. Lack of good support videos ***HUGE Issue.

    I read the docs and the screenshots and detail assume that you understand more than most of us do. There are NO good examples of setting up badges for example. Shown is a blank Badge setting as to what you see when you first open it up. Then there are examples of code but no examples of showing the shortcode generator filled out… so hard to tell how you arrived at that final code and which fields to fill out.

    Paolo shared with me about a year ago that they had hired a guy to get things organized but I am assuming that didn’t work out. We really need some good support videos and examples….otherwise I can just image that you guys in support just end up answering the same questions over and over and over. Good Videos and support docs would certainly help you and us. Rant over….thanks.

    Can you help me set up a Badge so that I understand how to do this?

    #536125

    Guust
    Moderator
    Post count: 29970

    Please post in a private reply, and we will add it, and explain how we did it:
    1. URL
    2. WP admin details
    3. Options you want to be available for listing owners
    4. Details of CPT
    5. Where do you want the badge? I am guessing in the sidebar of the Detail page and on every GD Archive Item?

    Hover over the question marks of options in the shortcode builder for assistance.

    Thanks

    #536269

    riobravomedia
    Expired Member
    Post count: 361
    This reply has been marked as private.
    #536376

    Guust
    Moderator
    Post count: 29970

    1. Create a SELECT field, with the options you want.
    2. Go to GD > Settings > Pages > Archive Item, and add a GD Post Badge element, using the “is_not_empty” condition (so it only shows if the listing has data for this field, and the “%%input%%” option for showing the data entered for the listing.
    3. Go to GD > Advanced Search and add the field to the search bar.
    4. Create a GD Post Badge widget for the sidebar using the same options as per point 2.

    Thanks

    #536380

    riobravomedia
    Expired Member
    Post count: 361

    Guust,

    Thanks so much for your help. I will review this and see how well I understand it and if I can find it 😀

    I have a few questions for now.

    1. On the Edit Restaurant Listing Detail page there is the new option for Takeout or Delivery. I just want to confirm how this works. Seems like this will add this option to every listing even if they do not over Delivery or Takeout because there is no option otherwise… is this correct? if so how can I change this and have an option for either checkboxes or Neither?

    2. I had shared a screenshot showing the location that I wanted the Badge to show on the Listing Detail page under the address instead of the sidebar. I am happy to have it either way but how would I move it to under the address? What page would I edit?

    #536392

    Guust
    Moderator
    Post count: 29970

    1. On the Edit Restaurant Listing Detail page there is the new option for Takeout or Delivery. I just want to confirm how this works. Seems like this will add this option to every listing even if they do not over Delivery or Takeout because there is no option otherwise… is this correct? if so how can I change this and have an option for either checkboxes or Neither?

    You can create a new MULTISELECT field instead of a SELECT field, but MULTISELECT cannot be added to the search bar direct [see image 1], but only to the search options available when clicking on the “cog wheel” like here [image 2]: https://wpgeo.directory/supreme-directory/properties/category/houses/

    Businesses that do not do takeaway or delivery would not choose anything, it is not a required field. Or you could add an option like “No delivery or takeaway”.

    2. I had shared a screenshot showing the location that I wanted the Badge to show on the Listing Detail page under the address instead of the sidebar. I am happy to have it either way but how would I move it to under the address? What page would I edit?

    You will need to ask Listimia about which file you would have to edit for that. That cannot be done by changing anything in the backend.

    Thanks

    #536462

    riobravomedia
    Expired Member
    Post count: 361

    Guust,

    hey I noticed that you made the correction/change to the Select Field so that this can be disabled. Very interesting how you used the / mark “Select one/,Takeout only,Delivery only,Takeout and Delivery” and I noticed also that you do not use spaces after the comma, good to know.

    Thanks for editing this Guust!!! Appreciate it.

    I spoke to Addicted2Web about Listimia and they gave me the php code snippet to add the code that I need but the GD shortcode or the Widget Shortcode will not work here. Any suggestions?

    #536469

    Guust
    Moderator
    Post count: 29970

    You did not add any extra shortcode to the widget … ?

    #536471

    riobravomedia
    Expired Member
    Post count: 361

    I created the shortcode using the add post page and then added that to the php code. But didn’t save the page/post or create a widget

    #536473

    Guust
    Moderator
    Post count: 29970

    I could not see the shortcode added in the snippet.

    I have added it now.

    // adding Badge to the Listing Detail Page Banner
    function remove_listimia_single_left_info_end()
    {
        remove_action('listimia_single_left_info_end', 'listimia_single_left_info_end');
    }
    add_action('init', 'remove_listimia_single_left_info_end');
    
    function listimia_custom_single_left_info_end()
    { ?>
    
        <div class="listing-address">
            <i class="fas fa-map-marker-alt"></i>
            <?php echo strip_tags(do_shortcode('[gd_post_address address_template="%%street%%, %%city%%, %%region%%, %%zip%%"]')); ?>
    		<?php echo '<br>'; ?>
    		<?php echo (do_shortcode('[gd_post_badge key="takeout" condition="is_not_empty" badge="%%input%%" bg_color=#ff9300 txt_color="#ffffff" size="small" ]')); ?>
        </div>
    
    <?php
    }
    add_action('listimia_single_left_info_end', 'listimia_custom_single_left_info_end');
    #536474

    riobravomedia
    Expired Member
    Post count: 361

    I see you meant the shortcode in the code.. I had removed it since it wasn’t showing.. I see now how you display the shortcode in php. Thanks.

    But do you also have to create a widget? and if so where is that widget located?

    Yeah.. appreciate your help again!

    Address on Listing Cards.

    I am also not having any success with getting the address on the listing cards to be inline as opposed to stacked. Listimia suggested that I use this

    
    
    [gd_post_address show="icon-value" address_template="%%street%%, %%city%%, %%region%% %%zip%%" alignment="left"]
    
    

    but it doesn’t seem to display on the listing card. What am I doing wrong?

    I am trying to also remove the “United States” from the address.

    #536481

    Guust
    Moderator
    Post count: 29970

    You should change that in the GD Archive Item page …

    #536482

    riobravomedia
    Expired Member
    Post count: 361

    I did that but it doesn’t display. I removed it now and replaced with original for now.

    Also for some reason the full text on Takeout and Delivery is not showing. Only showing “Takeout and Delive” See Screenshot

    The Select field seems to be correct.

Viewing 15 posts - 1 through 15 (of 18 total)

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

Open Support Ticket