• Resolved belenrr

    (@belenrr)


    Hi,

    I have created my single-private-page.php in the theme’s root and select page as the Client Portal Template, but it is still showing the page.php
    Any idea of what is happening?
    My ideal solution would be to be able to use pages with Page attributes where I can choose my template, so I can have a different template for each user. I rather create my template in html and then linked in wp, because the editor reduces a lot my creation possibilities (menus, tabs, effects…) Is this possible?
    Thanks in advance!

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • Hello @belenrr,

    Thank you for reaching out to us.

    It’s possible the theme doesn’t assign the correct template somehow? It should apply the correct template according to

    https://developer.wordpress.org/themes/basics/template-hierarchy/#single-post

    Also, please make sure you made changes to correct theme folder.

    As for all sort of other structures in the page, you can always use a pagebuilder like Elementor.

    Kind regards,

    Thread Starter belenrr

    (@belenrr)

    Hi @dariusraia,

    Thanks for your answer.
    I would say the theme is assigning the template correctly, since it is making use of the page.php, but I want it to use the single-private-page.php since I want a different structure (I am already using the page.php for other section)

    I am using a custom theme I created myself, could this be the problem? In that case, what can I do? There is no way I can change my theme at this point….

    Regards,

    Thread Starter belenrr

    (@belenrr)

    Hi again, just realized, could this have something to do with the slug? What should I set in the Page slug for the Client Portal settings?

    Thanks,

    Regards

    Hello @belenrr,

    Yes, it’s related to the post type slug in the settings. But it looks like it’s the correct one. So at this point I’m not sure why your CPT template doesn’t get assigned. Try to modify the slug and change the name, then try again please.

    Kind regards,

    • This reply was modified 4 years, 11 months ago by dariusraia.
    Thread Starter belenrr

    (@belenrr)

    Hi @dariusraia,

    Which slug do I suppose to set having a single-private-page.php? I have already changed and can’t remember the default one, which is maybe the correct one.

    Thanks,

    Regards,

    Belén

    Hello @belenrr,

    Sorry for the delayed response. Here is how the link should look like:

    example.com/private-page/username/

    Best regards,

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘single-private-page.php not working’ is closed to new replies.