szury
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Display 5 recent pages?FOUND THE SOLUTION!
Add this to sidebar.php:
<?php $args = array( 'posts_per_page' => 5, 'post_type' => 'page'); $postslist = get_posts( $args ); if($postslist) : ?> <ul class="recent-pages"><?php foreach ($postslist as $post) : setup_postdata($post); ?> <li><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></li> <?php endforeach; ?> </ul> <?php endif; ?>Thanks to esmi and keesiemeijer
Forum: Fixing WordPress
In reply to: Display 5 recent pages?There is another problem now.
keesiemeijer i am using your version. It shows the titles of the most recent pages but it doesn’t link to anything. How can I fix it?Forum: Fixing WordPress
In reply to: Display 5 recent pages?found out it works if I add it to the sidebar file. Thanks guys 🙂
Forum: Fixing WordPress
In reply to: Display 5 recent pages?Doesn’t work. This is what I get: http://img13.imageshack.us/img13/9085/unled23n.png
I just copy pasted what you said as a sidebar widget. Have I done something wrong?
Forum: Fixing WordPress
In reply to: Display 5 recent pages?unfortunately it is not working 🙁
Forum: Fixing WordPress
In reply to: Display 5 recent pages?Thanks Esmi. Checked that page already, but i couldn’t figure it out how to do it with pages. Could you post the exact code?
Forum: Fixing WordPress
In reply to: How to edit dynamic sidebar?later edit:
It works now thank you 🙂
Forum: Fixing WordPress
In reply to: How to edit dynamic sidebar?there’s a lot of code there but this is all that I could find related to my problem:
if(function_exists('register_sidebar')){ register_sidebar(array('name' => 'Sidebar' )); } if(function_exists('register_sidebar')){ register_sidebar(array('name' => 'Footer')); }I tried to change it to this with no effect:
if(function_exists('register_sidebar')){ register_sidebar(array('name' => 'Sidebar' 'before_title' => '<h4>','after_title' => '</h4>',)); }Forum: Themes and Templates
In reply to: How to move h1 on homepage onlyAwesome alchymyth. You’re the best
It works. I would have searched for this for days if it wasn’t for you 🙂
Thank you.Forum: Themes and Templates
In reply to: How to move h1 on homepage onlyhello,
Thanks for your help.
I’ve added <body <?php body_class(); ?>> in header.php but what is the next step? How do I add more css styles or what do I do now?