Skip Navigation

[Resolved] Access Control is not showing custom post type

This support ticket is created 6 years, 6 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 -
- 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 -

Supporter timezone: Europe/London (GMT+00:00)

This topic contains 3 replies, has 2 voices.

Last updated by Lee 6 years, 5 months ago.

Assisted by: Nigel.

Author
Posts
#920870

Lee
Screenshot.png

Hi,

I am creating a 'File Manager' where users can go to download files from the website.
I need to be able to give various user roles access to each indivdual file.

When a standard user does a search they will only see results for their access level.
Users with more permissions will see all of the available files.

When the client adds a new individual file in the back end of wordpress they also will need to assign its access.

Page link: hidden link

I was looking at doing this by setting up some 'Post Groups', but I can't allow my custom post type to be 'managed by access' because it isn't showing up in the Access Control panel. (screenshot attached)

Help appreciated...

Cheers
James

#920912

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

Hi James

Sorry, this landed too late for me to check today, I'll get on it in the morning.

#921245

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

Sorry, I'm just getting to this now.

Is the Files post type created with Types? Have you changed any of the options for this post type from their defaults?

I would need to see if there are any errors in the logs that might account for its omission in the Access list of post types.

If you haven't already, turn on the debug log by editing your wp-config.php file and change the line with WP_DEBUG like so:

define('WP_DEBUG', true);
define('WP_DEBUG_LOG', true);
define('WP_DEBUG_DISPLAY', false);

That will create a file debug.log in wp-content/ which you can examine in any text editor.

Go back to the Access page and then inspect the log. If you don't find the debug.log file it means it didn't generate any warnings or errors.

Next I would need to see if this happens with the twentyseventeen theme and all non-Toolset plugins disabled.

If it does then I'd need a copy of your site to test and debug (it is not something I can reproduce), which you can provide: hidden link

I've listed everything there so we can limit the back and forth. I'll mark your next reply as private in case you reach the stage of needing to share your site with me.

#924218

Lee

Hi Nigel, sorry for the delay in getting back to you.

I managed to fix this issue myself, turned out it just didn't like the term 'File'.
I changed this to 'Documents' and everything worked as expected.

Thanks for you help
James