How to hide ids from URL [closed]

That’s a basic facet of how web browsers work, you pass the ID as fragment in the address bar and it knows to scroll to that point. It would be possible to bodge your way around it with an event handler, but That’s not specific to WordPress, so would be best asked on a different … Read more

Incorrect Post URLs

I have checked the URLs and found that the Post URLs becomes https://michaelandpamstravels.com/?page_id=15204. Looks like your website permalink structure sets to Plain. To correct this I suggest you to go to Settings > Permalinks > Permalink structure, here you can update Permalink structure as per your need. Screenshot : https://ibb.co/t8tzFZJ

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

Automatic short URL in posts

I installed yourls on a custom short domain. Then added an acf field to posts. Then when a post is added or modified, call yourls API to get the shortlink, and save that link in the custom field add_action(‘acf/save_post’, ‘update_related_posts’, 20); function update_related_posts($post_id) { global $old_field_value; // Check if the save is an auto-save, in … Read more

Leave login URL for my user beautiful

Assuming you’re trying to get rid of the ?redirect_to={url}, you can use the login_url filter to change the login URL, and remove unwanted querystring components with remove_query_arg(): add_filter( ‘login_url’, ‘wpse422493_strip_login_url’ ); /** * Strips `redirect_to` from the querystring. * * @param string $url The login URL. * @return string The filtered login URL. */ function … Read more