• Hi everybody, I am editing page.php to add the sidebar and this doesn’t show anything:
    if (is_page(30)) { get_sidebar(); }

    While this in archive.php does:
    if (in_category('Blog')) { get_sidebar(); }

    I tried with, but to no avail:

    $pages = get_pages();
      	foreach ( $pages as $page ) {
      	if (is_page($page->ID)) {
      		get_sidebar();
      		}
      		}

    Any suggestion?

    Thank you.
    Best,
    NM

Viewing 1 replies (of 1 total)
  • Check to see if the sidebar will ever display by using this:

    if ( true || is_page(30)) { get_sidebar(); }

    If the sidebar shows, then the page id may not be 30. If it does not show, then there is some other problem, possibly with the CSS used.

Viewing 1 replies (of 1 total)
  • The topic ‘Sidebar in page not displaying’ is closed to new replies.