This is exactly what I’m looking for.
But I got a problem, my sidebar.php is configured differently and I’m not much into php.
Here’s what I got:
Atm it’s like this:
<?php if (is_page()) { ?>
All the menu items
<?php } ?>
But I want different items to show at mypage
So I tried changing it to:
<?php if (is_page()) { ?>
<?php if (is_page(“mypage”)) { ?>
The menu items I want to show at mypage
<?php } ?>
<?php else { ?>
The menu items I want to show at the other pages
<?php } ?>
<?php } ?>
But that didn’t work. Sidebar didn’t show.
Then I tried:
<?php if (is_page()) { ?>
The menu items I want to show at the other pages
<?php } ?>
<?php if (is_page(“mypage”)) { ?>
The menu items I want to show at mypage
<?php } ?>
But now the sidebar showed twice, all the items and the items I want only to appear on mypage, so not useful either.
Then I tried adding endif, but not use either.
<?php if (is_page()) { ?>
The menu items I want to show at the other pages
<?php } ?>
<?php endif; ?>
<?php if (is_page(“mypage”)) { ?>
The menu items I want to show at mypage
<?php } ?>
Can someone help me out?
Site is https://www.mijnamsterdam.com btw…