Killersites Community: Help with sections of pages - Killersites Community

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Help with sections of pages

#1 User is offline   benjaminmorgan 

  • PipPipPipPip
  • Group: Member
  • Posts: 237
  • Joined: 18-September 11

Posted 17 December 2011 - 10:50 PM

I have a main nav horizontal with the wp_list_pages('depth=1&title_li=<h2 class="displaynone">Pages</h2>);
On the commercial page (on main navigation) I need to have a vertical sidebar only on this page. I don't know how to make it where he can add pages to it like that. So far when it creates a page it adds it to the main nav bar.
Things should be made as simple as possible, but not any simpler. -Albert Einstein
0

#2 User is offline   benjaminmorgan 

  • PipPipPipPip
  • Group: Member
  • Posts: 237
  • Joined: 18-September 11

Posted 18 December 2011 - 09:39 AM

I tried doing an If statement. It didn't work. For some reason the only thing it is putting on the sidebar is the word Commercial
<?php
if(trim(wp_title(''))=="Commercial") {
?>
<ul class="comside">
<?php
	$recent_posts = wp_get_recent_posts();
	foreach($recent_posts as $recent){
		echo '<li><a href="' . get_permalink($recent["ID"]) . '">' .  $recent["post_title"].'</a></li> ';
	}
?>
</ul>
<?php }?>

Things should be made as simple as possible, but not any simpler. -Albert Einstein
0

#3 User is offline   benjaminmorgan 

  • PipPipPipPip
  • Group: Member
  • Posts: 237
  • Joined: 18-September 11

Posted 18 December 2011 - 10:08 AM

Nevermind. I fixed it with adding , false to the wp_title. Not sure what parameter that is though.

This post has been edited by benjaminmorgan: 18 December 2011 - 10:17 AM

Things should be made as simple as possible, but not any simpler. -Albert Einstein
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users