Recently, I have done many small projects on the side where the client wants the good piece of the website to remain the same, they just want to be able to edit certain "areas" of the site. Namely, some text in some field.
I found that WordPress works pretty well for this. The interface is nice and easy to use, and it got a lot of work behind it, so I donβt need to reinvent the wheels, fix bugs, etc.
So, what I'm doing is to make PHP pages that look like the client wants, and then have a specific post or page in the content editing area that is editable in WordPress.
I have specific page content displayed on the page using code like this
<?php echo apply_filters('the_content', $page_Contact->post_content); ?>
where $page_Contact is a variable defined elsewhere.
However, the Preview or Page View / Post View function on each page / post goes to the logical location of WordPress, and this is not the effect I want in this case.
So for example, I have pages like this
www.site.com/index.php www.site.com/about.php www.site.com/contact.php
And so on.
WordPress wants Page View and Change View links to be placed as
www.site.com/?page_id=2 www.site.com/?page_id=8&preview=true&preview_id=8&preview_nonce=45522671f5
This is a problem because in the permalink structure above they both go to the index.php page, which, with the exception of the page that I use for the index.php structure, is not where I want the user / editor to go. And none of the above cases allows you to view any preview (which is the concession that I am ready to give, given how I do it)
Is there a way to preferably use the plugin to install WordPress so that the page preview in the information panel switches to the page preview other than index.php where the content will be placed? So, for example, the link to the "Contact" page in the WordPress control panel is contact.php instead of ?page_id=2 ? This is an agreement in which I try to do this in the editing interface, and I'm not interested in the links on the site itself.
Obviously, I will need to maintain this page, and it will be a situation where new pages will not grow if I do not put them.