finch3107
Forum Replies Created
-
Forum: Themes and Templates
In reply to: [OceanWP] Child theme leads to “Page not found 404 error”Okay @skalanter
Thanks for your help and patience!
Best
- This reply was modified 1 year, 11 months ago by finch3107.
Hi @specialk thanks for the suggestion. I tried adding the code to my child theme function.php but it basically broke the site haha. Any logged in users couldn’t see pages and instead all pages displayed “Page not found” and my custom menu was no longer displayed. I would be looking to purchase USP Pro if I can work this kink out so any help would be appreciated.
Best
Forum: Themes and Templates
In reply to: [OceanWP] Child theme leads to “Page not found 404 error”For context, I am using a plugin called USP. It allows users to submit their own posts and I was trying to use the code to ensure users could only see their own posts rather than everyone else’s.
- This reply was modified 1 year, 11 months ago by finch3107.
Forum: Themes and Templates
In reply to: [OceanWP] Child theme leads to “Page not found 404 error”Okay @skalanter , thanks. I have removed all customisation and now I can view the website as normal when logged in (phew). Thank you for your help. It must have been the code snippet I tried adding, do you have any idea why the below code would cause such an upset to the themes function.php?
/ limit post display to post author (excludes admins) function shapeSpace_set_only_author($query) { global $current_user; if (!current_user_can(‘manage_options’)) { $query->set(‘author’, $current_user->ID); } } add_action(‘pre_get_posts’, ‘shapeSpace_set_only_author’);
Best
- This reply was modified 1 year, 11 months ago by finch3107.
Forum: Themes and Templates
In reply to: [OceanWP] Child theme leads to “Page not found 404 error”Hi @skalanter , I have narrowed down the problem somewhat.
Using OceanWP Child Theme– when a user is logged in, they see the “Page not found” message for all pages. When logged out the pages are there and visible. So I thought it could be to do with my page visibility and user settings. However…
Using OceanWP– when logged in, they see all pages perfectly fine. When logged out, they see all pages perfectly fine.
Therefore, I know it is to do with the child theme being active and the fact that users are logged in. Does this offer a better insight into my problem?
- This reply was modified 1 year, 11 months ago by finch3107.
Forum: Fixing WordPress
In reply to: Can’t search for a new themeOkay, thanks very much for your help. I’ll speak to my hosting provider
Forum: Fixing WordPress
In reply to: Creating editable data tables for registered usersWow thanks for the response. Would any data inputted by the user onto the table/form be stored on my server? So for example, could it appear the same when the website is loaded up again and could it be edited? Thank you!