Sheshraj Ghimire

Forum Replies Created

Viewing 13 posts - 1 through 13 (of 13 total)
  • Author
    Posts
  • in reply to: Add new franchise not showing up #416240

    Sheshraj Ghimire
    Expired Member
    Post count: 14

    Thanks Kiran.

    in reply to: Add new franchise not showing up #416080

    Sheshraj Ghimire
    Expired Member
    Post count: 14

    Hey Guust,
    Yes I did disabled that. Sorry, I didn’t check that part. It is showing up now.
    However, can you let me know the function code that outputs “Add a franchise” button there so I can place it in different place. I won’t be enabling user links once site goes live.

    in reply to: Add new franchise not showing up #416000

    Sheshraj Ghimire
    Expired Member
    Post count: 14
    This reply has been marked as private.
    in reply to: Emails not sent #415270

    Sheshraj Ghimire
    Expired Member
    Post count: 14

    Okay Stiofan.

    in reply to: Emails not sent #414975

    Sheshraj Ghimire
    Expired Member
    Post count: 14

    Hey Stiofan,
    Give it a try now.

    in reply to: Emails not sent #414938

    Sheshraj Ghimire
    Expired Member
    Post count: 14

    Again you are just replying without going through what I just said. I am getting emails on gmail with other plugins. Not just with GD.

    in reply to: Emails not sent #414930

    Sheshraj Ghimire
    Expired Member
    Post count: 14

    As you suggested, adding email address associated with domain does work and I am getting emails. What I don’t understand is why isn’t it working with gmail or yahoo?
    I request to look into this.

    in reply to: Emails not sent #414928

    Sheshraj Ghimire
    Expired Member
    Post count: 14
    This reply has been marked as private.
    in reply to: Emails not sent #414791

    Sheshraj Ghimire
    Expired Member
    Post count: 14

    Till yesterday I was getting all the emails when listing were published. But today it isn’t working either. I have attached screenshot of my gmail. Today, I haven’t got any emails. Emails in screenshot are the last emails I got yesterday.

    in reply to: Emails not sent #414786

    Sheshraj Ghimire
    Expired Member
    Post count: 14

    Hello Guust,
    Thanks for pointing to enable User Links but I would rather use it in different place. You can see that there is “Claim Hospital” button just below title in full-width banner which does the same thing. I have attached the screenshot “fullwidth-banner.png” which does same thing as “Business Owner?” link.

    Still, I tried as you said. Still not working. I know that emails are processed but they are not delivered to mail addresses. You can change the email addresses to yours to check if you are getting those mails in your inbox.

    I have attached another screenshot “mail-not-delivered.jpg” with red text to inform you about the issues.

    in reply to: Emails not sent #414766

    Sheshraj Ghimire
    Expired Member
    Post count: 14
    This reply has been marked as private.
    in reply to: Check listing belongs to which CPT in preview #414412

    Sheshraj Ghimire
    Expired Member
    Post count: 14

    Hello Alex,
    Thank you for your suggestion. However, I already did all of that. I wasn’t looking for all the options that were present. They could only work once the listing is published(or maybe only in my case, I don’t know). I was asking for code that will let me know that new listing belongs to which CPT type. Maybe I wasn’t able to clarity that before. However, I finally found it.

    geodir_action_geodir_set_preview_post();

    I used it in following way and solved what I was trying to achieve:

    
    
    global $post, $preview;  
        if ( $preview ) {
            geodir_action_geodir_set_preview_post(); //sets $post value when previewing post
            $post_type = $post->listing_type; 
        } else { 
            $post_type = $post->post_type; 
        }
    
        if( $post_type == "gd_restaurant" ) {
            $postbanner_img_url = "$defult_url/wp-content/uploads/restaurant-banner.jpg"; //this way the image is displayed on restaurant listing page no matter the post status is
        }
    in reply to: Check listing belongs to which CPT in preview #414153

    Sheshraj Ghimire
    Expired Member
    Post count: 14

    I want to add it conditionally. Let me explain.
    I have restaurant CPT and Hospital CPT.
    I also have 2 different banner images uploaded to media: one for Restaurant and one for Hospital

    Now, when user add new restaurant listing and doesn’t select any image file, I want to show banner image of restaurant. I think I can display it on page when it’s published, but I can’t find any code that let me know that this listing that is being added is of which post type so I can conditionally show it in preview mode. (i.e. in listing preview page)

    Is there any such codes to know if new listing belong to which CPT without being published?

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