Creating new page overwrites old page

Are you using loop before getting content from WordPress? Like this one: <?php if( have_posts() ): while( have_posts() ): the_post(); ?> You content goes here <?php endwhile; endif; ?>

How page with random php file with query params generated

The site you linked isn’t a WordPress. You can make custom WordPress URL’s using WordPress’s URL Rewrite API. See https://codex.wordpress.org/Rewrite_API/add_rewrite_rule#Example , e.g.: function custom_rewrite_basic() { add_rewrite_rule(‘^anythinghere/([0-9]+)/?’, ‘index.php?page_id=$matches[1]’, ‘top’); } add_action(‘init’, ‘custom_rewrite_basic’); This makes a new URL format like yoursite.com/anythinghere/95 If that doesn’t meet your needs you can also edit .htaccess Editing your question to include … Read more