The code I have provided you earlier was based on the role “Subscriber”. But you need to have a code based on “Artiste”. so you placed that later on your code.
So now you'll create a template to use on your pages. So you create a new file like artiste.php and place the code inside. And then you go to wp-admin and create a new page. while creating, you get a option on the right sidebar like this
So you'll get to select your newly made template for that page.
In that way the codes will be assigned to that page.