Tagged: permalink
Hello I have a problem with the permalinks.
When I enable it as for example: “/%year%/%monthnum%/%day%/%postname%/
” webiste pages doesn’t work anymore returning a 404 not found.
Investigating it I found that it tries to find the pages with a wrong wp_query.
This is the query array it uses when I click a page (not a portfolio item):
[query] => Array
(
[page] =>
[name] => contacts
[post_type] => portfolio
[portfolio] => contacts
[debug-this] => wp_query
)
while instead it should use this one:
[query] => Array
(
[page] => contacts
[name] => contacts
[post_type] => page
[portfolio] =>
[debug-this] => wp_query
)
Have some idea why?
May be I found a workaround to fix it if it happens:
1) Go to Settings > Permalinks and hit the blue “Save” button
2) Afterwards go to Enfold Them Options -> hit save button
Now it could be very cool find the bug and fix it.
If you wanna reproduce it, try to change the “rewrite_rules” option_value on wp_options table with this: http://pastebin.com/R94u3T7q
Changing it, pages shouldn’t work anymore, and you can try the workaround to fix it.