Skip to content
This repository has been archived by the owner on Sep 16, 2019. It is now read-only.

Homepage replicate across all pages #755

Closed
fingomarketing opened this issue Mar 7, 2016 · 7 comments
Closed

Homepage replicate across all pages #755

fingomarketing opened this issue Mar 7, 2016 · 7 comments

Comments

@fingomarketing
Copy link

On our site all pages are the same copying the homepage but with different URL’s – the URL rewrite’s don’t seem to work.

We have disabled all plugins, updated Wordpress and eliminated hosting issues and .htaccess. If you swap to other themes it is fine. We have also simplified our site by removing the code in the header, footer and templates but the homepage still displays on all pages.

We have found various other articles referencing using wp_reset_query but these are already in place.

On the permalinks setting it works with plain ?p=123 so have set it to that but none of the other options work.

@olefredrik
Copy link
Owner

Are all your pages set to use the front template?

page-attributes

If yes, try using a different template (e.g the default template).

@fingomarketing
Copy link
Author

They are all using different templates

@olefredrik
Copy link
Owner

Can you try downloading a fresh install and see if your problem persists?

@fingomarketing
Copy link
Author

The error was in functions.php
commenting out the line add_filter( 'rewrite_rules_array', 'disable_embeds_rewrites' ); fixed it

@colin-marshall
Copy link
Collaborator

@fingomarketing I'm sorry you wasted many hours but that line of code isn't even in FoundationPress.

@olefredrik
Copy link
Owner

@fingomarketing : I also wasted time on an error that was not caused by FoundationPress. Which is just fine. No problem. But please do not pretend it's my fault that you have spent hours debugging your own code.

@fingomarketing
Copy link
Author

Thanks olefredrik wasn't saying it was your fault I was posting my solution in case others had a similar issue. Appreciate your help and the quick response.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants