Add php code to page
They sent me a sample page that features the code which I have attached here and hpoing someone here can help me.
I tried following the instructions in the documentation - copied the example page to the single_pages folder - added it on the dashboard, it showed up and showed up on the navigation of my website but was a complete blank page .
Copied it to the themes folder of the slate theme I use - still blank - I deleted the file in the single_pages folder - now visiting the page shows the theme colours, headers etc. but a page full of errors. So deleted all and started again.
Decided I'd try copying a view.php file from my theme/pagelist folder, renamed it, added in the custom code, saved it to the single_pages folder, added it via the dashboard
At this stage I decided I am way out of my depth here and have abandoned all my efforts.
I have a page I created for the members only area of my site it works as is but won't redirect if a user tries to access it without a login.
Unless you have a more idiot proff method for em to do this then it will have to remain as is
I have read and re-read the documentation but i am none the wiser. Can anyone help out here?