htaccess: Remove trailing slash from URL ending with .xml/ only

I need to remove trailing slash from URLs ending with .xml/ only .. For this purpose I’ve created a Rewrite Condition and Rule which is working perfectly fine for the test link http://website.com/test.xml/ Test Link: http://htaccess.mwl.be?share=6fe08232-438a-53fa-8f1a-1f7f69b77b6f The problem is when I place the rule in WordPress .htaccess file, it doesn’t work at all! Seems like … Read more

How to use Yoast SEO backend in english even if WPLANG variable is not english?

I added this code to my functions.php file add_filter(‘locale’, ‘wpse27056_setLocale’); function wpse27056_setLocale($locale) { if ( is_admin() ) { return ‘en_US’; } return $locale; } so the frontend is available in ro_RO and wp-admin is available in en_US Well… that almost worked excepting Yoast’s WordPress SEO plugin which is translated in romanian. What can i do … Read more

Yoast SEO breadcrumbs: how to create a filter that uses the url slug for breadcrumb titles

I know we can manually edit the breadcrumb title for a page or post using Yoast SEO’s breadcrumb functionality. But with thousands of posts and pages on an existing site this isn’t desirable. My brain goes full potato when it comes to stuff other than html and css and maybe hacking some existing PHP code … Read more

Inserting Post Using wp_insert_post. How to Fill Yoast Plugin SEO Fields

I am inserting posts into a database using wp_insert_post function once the post is inserted using below line of PHP $postId = wp_insert_post($array) I can insert values in my advanced custom fields using add_post_meta function but I didn’t find anything to insert the SEO title or the meta description specifically in the Yoast SEO plugin. … Read more

Exclude custom post_type in sitemap generation?

I want to exclude some specific post types from generating sitemaps in yoast seo plugin. Please provide suggestions to do this. Thanks in advance. 3 Answers 3 If you are using functions.php script to register custom post type, you should declare false to ‘has_archive’ => true,. function custom_post_type() { $labels = array( … ); $args … Read more

Can’t access my WP dashboard: fatal error? [closed]

Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it’s on-topic for WordPress Development Stack Exchange. Closed 4 years ago. Improve this question I can’t access my dashboard. It started after making a 301 redirect using a plugin. The redirection won’t load nor entry, … Read more