Can i have access to my WordPress Website again?

You need to look in your database in the wp_options table. There are two rows in the table that are relevant: look for siteurl and home – one or both of them will need to be edited, and updated to the correct url. Alternatively you can edit your wp-config.php file and add the following lines: … Read more

URL issue after migrating to dev site

Although you can use phpMyAdmin to dig into the database to change things, I always use the WP Clone plugin to easily move a site from development to production. Install the plugin on both source and target systems, then backup the source, and restore to the target. It’s here https://wordpress.org/plugins/wp-clone-by-wp-academy/ . Everything is moved for … Read more

Changing the website URL to the root folder

If I understand it correctly you want to transfer the site from www.example.com/test/wordpress to the www.example.com. To do so you have to have access to FTP or CPANEL/PLESK to actually cut files from the old location to the new. When you finished that you can use this tool to make the correct changes to the … Read more

Is there RELATIVE_PATH, like ABSPATH

You can use str_replace with __FILE__ to get the location of the current file. str_replace(ABSPATH, ”, __FILE__); So for example if __FILE__ returns: /users/chin/public_html/project-name/wp-content/theme/theme-name/functions.php The output would be: /wp-content/theme/theme-name/functions.php

How to remove my website link when adding a link?

You have to include the protocol (scheme), like https://. So for Facebook it would be https://www.facebook.com/examplepage. It is in this case not WordPress that adds your site URL in front of the URL, it’s your browser!

HTTP 403 Error when passing parameters to URL

I can guarantee that somewhere on your technology stack (edge CDN, Firewall, Web Server, WordPress Plugin) that you have something configured that throws a 403 error whenever you try to access a URL on your site without the User-Agent Header set. Hence why it works when you access in the browser (as this will contain … Read more

Can anybody provide me with a function to generate slugs?

This post provides a function, but it cannot handle non-latin characters. That’s because URLs can’t have non-latin/ASCII characters. Browsers might show non-latin characters to you, but it’s just a user interface feature. For example, if you visit this Wiktionary URL: https://en.wiktionary.org/wiki/わかもの#Japanese, you browser URL encodes the japanese characters to get the real URL: https://en.wiktionary.org/wiki/%E3%82%8F%E3%81%8B%E3%82%82%E3%81%AE#Japanese then … Read more

Will get_bloginfo(‘url’) return URL with backslash?

The Codex example for home_url() says you want home_url( “https://wordpress.stackexchange.com/” ) to get the blog’s URL with a trailing slash. Alternatively you could use trailingslashit( home_url() ). That may be safer if your site’s home option somehow ends up stored with a trailing slash, since it looks like get_home_url() assumes it isn’t, but that ought … Read more

How do you make homepage redirect to it’s slashed version?

What you are asking for is impossible, and if SEO consultants are asking for this then they do not know what they’re talking about. WordPress is not redirecting you to a non-slashed homepage, the change happens before your browser even starts the request. To understand why, take a look at one of the most basic … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)