Page Slug not working
-
Hello
Not sure if this is correct forum….
but…
I have registered a side bar which is working and when I just pull it in it works, however, I want to only pull it in on one page…
So I have used the following code…
<?php if(is_page('news')) { if ( is_active_sidebar('news-page-image')) { dynamic_sidebar('news-page-image'); } } else { } ?>
If I take out the if is page ‘news’ bit it shows on every page…so the sidebar bit is working…just not the page slug…the news page has the slug ‘news’ ..it is the posts page in Louis wordpress theme.
Any ideas much appreciated
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Page Slug not working’ is closed to new replies.