• Hi!

    Im having subpages with sidebars applied to it. I want those sidebars, which include a UL list navigation, to remain when I read articles (single.php) aswell. But since the single.php really don’t belong to any parent no navigation is showing up, of course. But how can I make the single.php belong to a parent?

    [Moved from Your WordPress which is NOT a support forum.]

Viewing 9 replies - 1 through 9 (of 9 total)
  • What theme are you using? Where did you download it from?

    Thread Starter Bondra

    (@bondra)

    Im using the “Day and Night” theme from mythemeshop (https://mythemeshop.com/themes/daynight/). But I have other themes that I want to apply this on aswell. So I would say it’s rather general than attached to a specific theme.

    Actually, whether a theme displays a sidebar on the single post page is completely theme-specific.

    Thread Starter Bondra

    (@bondra)

    Yes, but I’ve already added a sidebar in there myself using the include sidebar PHP code and it works fine, but as soon as I add a menu into the sidebar widget no menu won’t show up, simply because single.php don’t have any parent or children. That’s what my question is about ?? How I can put single.php being a child underneath another already existing page?

    For instance, suppose following site:

    home
    about
    –history
    –services
    contact

    Here I would prefer to have the news section as a child under the “about” section. Which means single.php have to be put undeneath about. Likeso:

    home
    about
    –history
    –services
    –news (here goes the news)
    contact

    If I’m just able to put the single.php as a child somehow I think I figure out the rest ??

    Thanks for your respond

    Posts don’t have a parent-child hierarchy.

    Thread Starter Bondra

    (@bondra)

    Okey so there isn’t a way to make it have parent-child hiearchy? ??

    No – not unless you want to get into creating your own custom post types with their own hierarchy.

    Thread Starter Bondra

    (@bondra)

    Is it a magnificent engagement like extensive knowledge in PHP?

    See Post_Types.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘How can single.php be placed as a children?’ is closed to new replies.