How can I create fields for an URL which is fixed, not editable by user?
Hi there from Germany,
I created a custom Post Ty for Teams. On the Elementor Template for this single CPT I added three Buttons, which need a path. I easily could set up 3 URL Fields for URLs for the buttons and use it dynamically.
But I do not want anybody to be able to change these paths under "Teams", as it is used for Layout matters. So the question is how can I hide these individual fields or make it not editable for standard users?
Les langues: Anglais (English )Espagnol (Español )
Fuseau horaire: Europe/London (GMT+00:00)
Who is "anybody"?
They have access to editing Team posts? They have access to editing the Elementor template?
You say that you "could" make the buttons dynamic. So, that's optional? Meaning you can just add fixed URLs to the template?
In any case, if you are using Access you can put these custom fields within their own Custom Field Group, assigned to the Teams post type, and the go to Toolset > Access Control > Types Fields and specify which user roles are able to edit those fields.
Presumably an administrator would be able to, and some other role which is allowed to edit Team posts should not be able to.
Each club has different teams (my CPT), of course.
In my Template I want to link to different pages, but these pages are different for each team (actual team posts, galleries). So in my opinion it makes sense to create a field for each of the different paths. But another user of the Backend should be able to edit all fields except these fields for the paths.
The buttons in blue on this page for example: lien caché
The only solution seems to be for me to hide these field for paths somehow. Am I right?