I'm facing an issue I've never seen before. I fully copied a WP website to my localhost machine and everything was looking fine. When I was trying to make some changes on the blog page template (that template was set to be the "posts page" on Admin > Settings > Reading), I didn't see the page template dropdown being displayed on Page Attributes box, but that weird thing is happening only on localhost, because I can see that dropdown on the online website. If I set another page else to be the "posts page" and then come back to that 1st one, I can see the page templates dropdown as normal, but this also is only happening on localhost.

I know that a specific page template is being used for posts page, however I neither can't see the page templates dropdown nor my changes on the php template page.

Is there some reported bug around that issue? I haven't updated to the 4.9 WP version yet.

Does anyone know how to fix? I need to make changes on that template and I'm stuck on the job because that issue which is giving me a big headache.


2 Answers 2


You're not supposed to see the template dropdown when editing the Posts page, because changing the template with the dropdown wouldn't do anything.

The template for the Posts page is determined by the Template Hierarchy. When you make a page the Posts page it's no longer a Page in terms of templates. It will use home.php template if it exists, or index.php if it doesn't.

If you want the user of your theme to be able to select different templates for the Posts page, you would need to implement that yourself in a custom meta box or the Customiser.


Did you change the URLs (in two places) in wp_options table on the local system to the proper value (your local system)?

And be aware that perhaps some other values in the wp_options table may have the production URL in them that will need to be changed (due to settings in plugins or themes) on the local system. And then you'll need to change them back if you put the database back on the production site.

Although if you are just changing template code, you shouldn't need to copy the database back to production, just copy the template file. (And I assume you are using a Child Theme, so any theme updates won't overwrite things.)

  • Yes, every time I'm gonna work on a website, I proceed with a full download in order to see everything on my machine exactly it looks like on production, and for sure, I run some mysql queries (I have it saved) to replace the urls. About these procedures, it's all ok, but I got in doubt when you said about values in the wp_options that maybe haven't being changed. Nov 17, 2018 at 23:49

Not the answer you're looking for? Browse other questions tagged or ask your own question.