Get Page URl when changing slug and permalink

Instead of hardcoding the slug, instead store the ID in an option and then use it to call get_permalink(). You can also avoid hardcoding the $baseUrl and rely on a nav menu or button block instead so that it automatically updates. For example, $page_id = …..; // maybe a `get_option` call or something else? Depends … Read more

What is the correct url to request the 404 page?

Yes this this doesn’t work when you have custom permalinks enabled. See the red warning box on the page you linked: WARNING: If you are using custom permalink, the trick below does not work, see this: http://core.trac.wordpress.org/ticket/7592. The trac ticket was closed as invalid so doesn’t look like this will change.

url ends in “/embed”

This pages can be generated in WP, or by plugins and are intended to allow the page to be embedded on other websites. If you do not want them they can be “removed” via an .htaccess rule: RewriteEngine On RewriteCond %{REQUEST_URI} ^(.*)/embed/?$ RewriteRule ^(.*)/embed/?$ %1 [R=301,L] Or a custom function in your functions.php file: function … Read more

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