Sheshraj Ghimire
Forum Replies Created
-
AuthorPosts
-
Thanks Kiran.
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.This reply has been marked as private.Okay Stiofan.
Hey Stiofan,
Give it a try now.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.
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.This reply has been marked as private.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.
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.
This reply has been marked as private.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 }
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 HospitalNow, 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?
-
AuthorPosts