aslamp
Forum Replies Created
-
Forum: Plugins
In reply to: Adding special character between [wp_list_pages]Hey LenK.
Thanks for your replay.
I changed the code, but it messed up the menu.
Link to ScreenshotAny other suggestions ? 🙂
Current code:<ul class="Menu"> <li<?php if ( is_home() ) { echo ' class="current_page_item"'; } ?>><a href="<?php echo get_option('home'); ?>"><span>Home</span></a></li> <?php $char = ' | '; wp_list_pages('title_li=&depth=1&link_before=<li>&link_after='.$char.'</li>'); ?> </ul>Forum: Everything else WordPress
In reply to: Image and IF functionAfter alot of php reading i made this code and it worked 🙂
So if anyone else have the same proble just use this :
<?php
if(is_page(‘148’))
echo ‘<div class=”bilde2″></div>’;
elseif(is_page(’18’)):
echo ‘<div class=”bilde3″></div>’;
else:
echo ‘<div class=”bilde4″></div>’;
endif;?>
Forum: Everything else WordPress
In reply to: Image and IF functionat the moment this div defines the picture under the menu.
<div class=”bilde2″></div>
I tryed this code, but that just crashed the site. It might give you and idea about what im after 🙂<?php if ($page_id="18") echo "<div class="bilde2"></div>"; elseif ($page_id="147") echo "<div class="bilde3"></div>"; else echo "<div class="bilde4"></div>!"; ?>Forum: Everything else WordPress
In reply to: Image and IF functionI want a different picture to show in every page. 1 picture in home. 1 picture in contact, one picture in about etc.
http://vetech.no/wp/?page_id=148The image above the page content is now the same on every page. I would like it to show one picture if page_id=148 and another picture if ?page_id=18.
Forum: Plugins
In reply to: [Plugin: Post Teaser] <!–more–> tag WP 2.9You need to change the from visual to html in the post. Up right corner where you write your posts.