Rewrite permalink with PHP processing

Based on your example there are 4 fundamental steps to take. I’ve tried to use examples below, and they may not work as is, but they demonstrate the fundamental principles needed: 1. Add a query var shorty This whitelists shorty and gives the 2c from /shorty/2c somewhere to be stored function shorty_query_vars( array $qvars ) … Read more

index.php changed on its own

You site has been infected with malware. It will take some effort to clean it up, but it can be done. Basic steps are available via searching, and are out of scope for here, but to get started: Update WP core to latest, even if it already is. Update all themes and plugins. Remove plugins … Read more

disabled plugin and now wordpress won’t load

Rename your plugins folder temporarily to disable all plugins. . If necessary, also rename your active theme’s folder, then upload WP core. Then reinstall WP manually (unzip to local, then upload) – saving your wp-config.php file first That should get you access to admin. Then follow the steps here to clean up your site: https://wordpress.stackexchange.com/a/415705/29416 … Read more

Need pages with same names in multiple subdirectories

It sounds like you’ll need to create the page templates with filenames such as tpl-calculator-1.php, tpl-calculator-2.php, etc. You then make sure to put a comment at the top of each template to give it a user-friendly name that will appear in the Editor: <?php /** * Template Name: Events Thank You */ Files named this … Read more