Featured status and review star rating in the sidebar on detail page

This topic contains 7 replies, has 3 voices, and was last updated by  Stiofan O’Connor 8 years, 5 months ago.

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

Open Support Ticket
  • Author
    Posts
  • #59856

    iwoaw
    Expired Member
    Post count: 150

    Is it possible to display the featured status (yes/no) and review overall star rating (average of all ratings for the listing) in the sidebar on the detail page?

    #59896

    Paolo
    Site Admin
    Post count: 31206

    Hi,

    the overal rating shows up by default. (see image attached) The listing though must have at least 1 review.

    Showing the featured status can be a bit trickier and would require some custom code. Current option don’t allow to show it.

    Thanks

    #59907

    iwoaw
    Expired Member
    Post count: 150

    My ‘featured’ function is used is identify businesses that have received unique recognition important to directory viewers. I’d like to be able to that fact on the detail page somewhere. What kind of code do we need to the ‘featured’ on the detail page?

    #59919

    Paolo
    Site Admin
    Post count: 31206

    I’ve asked to the developers to provide a code snippet. If it’s not too complex you should have it by tomorrow.

    However you should be aware that this is considered a customization that goes beyond support. https://wpgeodirectory.com/support-policy/

    If you need to make many more changes to the plugin to personalize your website, you should consider hiring a freelance developer to assit you with any further change that you have in mind.

    Thank you

    #59930

    iwoaw
    Expired Member
    Post count: 150

    Thanks. We are a not profit relying strictly on volunteers… so I hope that we the code will be easy. Thanks for the help.

    #59992

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    Hello,

    This would add info to the top of the sidebar, you would add this code to your theme functions.php

    
    
    add_action('geodir_detail_page_sidebar', 'my_feature_func',9);
    function my_feature_func(){
    global $post;
        if(isset($post->is_featured) && $post->is_featured){
            echo "<div class='geodir-company_info geodir-details-sidebar-is-featured'><h3>This place is featured!</h3></div>";
        }
    }

    Thanks,

    Stiofan

    #59995

    iwoaw
    Expired Member
    Post count: 150

    I changed text to img. The certification seal at the top of detail page looks great! Thank you so much.

    #59996

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    🙂

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

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

Open Support Ticket