Rajin Sharwar
Forum Replies Created
-
To get back the WordPress sitemap that was automatically generated, you can try the following steps:
1. Login to your WordPress dashboard and go to Settings > Reading page.
2. Scroll down to the Search Engine Visibility section and check the box next to “Discourage search engines from indexing this site.”
3. Click on the Save Changes button to save the changes.
4. Wait for a few minutes and then uncheck the box next to “Discourage search engines from indexing this site.”
5. Click on the Save Changes button again to save the changes.
This should reset the WordPress sitemap, and you should be able to access it by going to the URL of your sitemap (e.g., https://www.yourwebsite.com/wp-sitemap.xml).Forum: Fixing WordPress
In reply to: Redirects – Web.config file – Windows ServerTo redirect a category on your WordPress platform to a page on your website, you can add the code you provided to your web.config file. However, you may want to make a few changes to the code to make it work properly.
First, the match element in the code is looking for a URL that ends with /category/name-of-category/. However, the URLs for categories on WordPress typically include the category slug, not the category name, in the URL. For example, if your category has the slug “test-category”, the URL for that category would be https://www.name-of-site.co.uk/category/test-category/. So, you may want to change the match element in the code to look for the URL of the category using its slug instead of its name.
Second, the conditions element in the code is checking whether the requested URL is a file or directory. However, since you are redirecting a URL on your WordPress platform, it is unlikely that the requested URL would be a file or directory on the server. In this case, you may want to remove the conditions element from the code or modify it to check for a different condition.
Third, the action element in the code uses the Redirect type, which will send a 302 redirect to the browser. This type of redirect is temporary and may not be suitable for all situations. If you want to redirect users permanently, you may want to use the RedirectPermanent type instead.
Below is the example I a referring to:
<rule name=”test” stopProcessing=”true”>
<match url=”^/category/test-category/$” />
<action type=”RedirectPermanent” url=”https://www.name-of-website.co.uk/particular-page.asp” />
</rule>For example, you will need to replace “test-category” with the actual slug of the category you want to redirect, and you will need to replace “https://www.name-of-website.co.uk/particular-page.asp” with the actual URL of the page you want to redirect to.
Forum: Reviews
In reply to: [WordLive | Livecall Addon for Woocommerce] GREAT WORKThank you!!
Feel free to raise any issue in Github, or submit any suggestions.Thanks for your assistance @jahidulhassan
I was able to display the user details by using the customer’s email to fetch the ID and then using the ID to fetch the other details. Pasting the code for others’ reference.
<?php $quote_id = $quote->id; // // Get the user ID from an Quote ID // $user_id = get_post_meta( $quote_id, '_customer_user', true ); $the_user = get_user_by('email', $customer_email); $the_user_id = $the_user->ID; // Get an instance of the WC_Customer Object from the user ID $customer = new WC_Customer( $the_user_id ); $username = $customer->get_username(); // Get username $user_email = $customer->get_email(); // Get account email $first_name = $customer->get_first_name(); $last_name = $customer->get_last_name(); $display_name = $customer->get_display_name(); $shipping_city= $customer->get_shipping_city(); ?>
Thanks and Regards,
Rajin SharwarThanks @jahidulhassan
My objective is to display the User’s Shipping address in Vendor Dashboard.
Would you mind sharing the exact PHP snippet for the purpose?I understand this is comming from Woocommerce. But, I thought as the user role “Customer” is set by dokan, Dokan has a variable defined that one can use to fetch the details of that user who had given that order or quote.
Appreciate your assistance.
Thanks and Regards,
Rajin SharwarForum: Fixing WordPress
In reply to: Getting ‘noindex’ detected in ‘robots’ meta tagThanks, have a nice day.
Forum: Fixing WordPress
In reply to: Logo header dissapear until refreshHello there,
Can I get access to your WordPress website? If you don’t want to give me access here mail me at [email protected]
Thanks.Forum: Fixing WordPress
In reply to: All menu links text change automatically to same text site wideHello there,
May I get the URL of the website where you are facing the error?
Thanks.Forum: Fixing WordPress
In reply to: Getting ‘noindex’ detected in ‘robots’ meta tagHello there,
Thanks for inquiring. After checking your website, I found that you are using Yoast-SEO. So, hover to SEO>Tools>File Editor, Then create a sitemap. If you already have created one, click save changes to robots.txt. Then, go to your google webmaster tool, and delete your existing sitemap. Then resubmit the sitemap again. Hope this will fix. If these still don’t help, let me know. I will be glad to help.Forum: Fixing WordPress
In reply to: Logo header dissapear until refreshHello there,
Thanks for your reply. I saw the issue on my end now. Can I get two screenshots? One of a list of the plugins you are using and another of the theme you are using.
Thanks.Forum: Fixing WordPress
In reply to: Logo header dissapear until refreshHello there,
Thanks for reaching out here. I checked your website and saw the logo without refreshing it. I think on your end might be some cache issue. Try clearing your cache on your browser. If that doesn’t solve also, please let me know. I will be glad to help.
Thanks.Forum: Fixing WordPress
In reply to: Content suddenly missing on siteHello there,
Really sorry for the problem you are experiencing. The problem might be caused because of some speed optimization plugin you have used. Some speed optimization options can break down your site.
Also, it might be caused because some core plugins of the site may be deleted, like elementor(If you have used elementor to build your page), Wpbakery, Revolution slider, etc.
If none of the above were caused, please let me know.
Thanks.