I want to use CCAP to restrict who can access a page based up a CCAP. I was going to code like the below If/else, but my page is built with elements and a Gravity Form. So it is hard to place the content in the middle of the code.
I figured next I would go to the side bar and put in the CCAP restriction - it works. However when a user comes in with the wrong CCAP there is no error message the user suddenly ends up on my Welcome page. It is confusing. What I would like to do is have a different page come up stating they don't have the membership level to access this area. After an hour of searching and reading and I can't find how to do this.
Lastly, I am not a code jockey, business owner trying build my site and save $. So I can do something go work but my skills are not deep
Content for members with the Custom Capability: music
Access is restricted to Project Owners with Limited membership.