EH

Forum Replies Created

Viewing 15 posts - 16 through 30 (of 87 total)
  • Author
    Posts
  • in reply to: SSL #223791

    EH
    Expired Member
    Post count: 96

    That is what I ended up ultimately doing. Thanks

    in reply to: Get Package id #217676

    EH
    Expired Member
    Post count: 96

    @jeff Thank you. I think I have it working. Posting my hopefully working code incase anyone else can use it.

    
    
           //Add Message for Directory users Subscribers Only
           add_action ('genesis_before_header', 'geo_badge');
           function geo_badge(){
                if ( is_user_logged_in() && current_user_can( 'subscriber' )) {
                    global $current_user;
                    get_currentuserinfo();
    
                    //get all listing from author
                    $args = array(
                        'post_type' => 'gd_place',
                        'author'=> $current_user->ID
                    );
    
                    $the_query = new WP_Query( $args );
    
                    if ( $the_query->have_posts() ) :
    
                        while ( $the_query->have_posts() ) : $the_query->the_post();
                            $postid = get_the_ID ();
                            global $wpdb;
                            $ispaid[] = $wpdb->get_var("SELECT package_id FROM wp_geodir_gd_place_detail WHERE post_id = $postid");
                            $expire = $wpdb->get_var("SELECT expire_date FROM wp_geodir_gd_place_detail WHERE post_id = $postid");
                        endwhile;
                        wp_reset_query();
                    endif;
                    foreach ($ispaid as $pack_id):
                    if ($pack_id == 2) {
                        echo '<div class="statusbar"><div class="statusbar-wrapper"><div class="site-inner">You are on premium package. Your package will expire on ';
                        echo $expire;
                        echo '</div></div></div>';  
                        break;
                    }
                    endforeach;
                    if ($pack_id != 2 ){
                        echo '<div class="statusbar"><div class="statusbar-wrapper"><div class="site-inner">You are on a free package. You can upgrade <a href="/upgrade-listing-premium">here.</a>';
                        echo '</div></div></div>';
                    }
               }
           }

    EH
    Expired Member
    Post count: 96

    Installing the CPT fixed my problem. Thank you.


    EH
    Expired Member
    Post count: 96

    I’m sorry to be a pain. But I have translated place and it works everywhere expect for the backend menu Place Title or Place Description am I missing something?

    I can install the custom post type add on but i’m not using a custom post type, I just want place to be called listing.


    EH
    Expired Member
    Post count: 96

    Correct me if I’m wrong, but it looks as though I can’t change the name of places on the back end or Place Title or Place Description because it pulls it from the CPT?


    EH
    Expired Member
    Post count: 96

    Where do I get the New PO file? I copied it from /wp-content/plugins/geodirectory/geodirectory-languages/geodirectory-en_US.po but it didn’t seem to fix it.


    EH
    Expired Member
    Post count: 96

    if I update my PO file will I have to do my translation over again? is there somewhere where I can grab the latest PO file? I’m working on a local and push stuff up to live via GIT.


    EH
    Expired Member
    Post count: 96
    This reply has been marked as private.
    in reply to: Show Paid listing first in all searches #214750

    EH
    Expired Member
    Post count: 96

    I found my answer here. https://wpgeodirectory.com/support/topic/sort-not-working/#post-112947 looks like it’s not possible to force featured listings first in a search by distance.

    in reply to: Show Paid listing first in all searches #214745

    EH
    Expired Member
    Post count: 96

    I figured it out. Thank you!

    Actually spoke too soon, no I didn’t.


    EH
    Expired Member
    Post count: 96
    This reply has been marked as private.

    EH
    Expired Member
    Post count: 96
    This reply has been marked as private.
    in reply to: CDN broke booster? #212560

    EH
    Expired Member
    Post count: 96

    I fixed it. The advanced-cache.php was corrupt.

    in reply to: CDN broke booster? #212424

    EH
    Expired Member
    Post count: 96
    This reply has been marked as private.
    in reply to: hook for search section #209146

    EH
    Expired Member
    Post count: 96

    It just occurred to me that I could do this with CSS. Nevermind. Thank you.

Viewing 15 posts - 16 through 30 (of 87 total)
20% Discount Offer
Hurry! Get your 20% discount before it expires. Get 20% Discount