jsudesign
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: How to show recent posts body.Ok, so I’ve fixed this and Im posting this incase someone else comes across this and wants to do the same. Note: There might be a better way to do this, but this is what worked for me, feel free to post the better way if you know how.
These are the 4 steps I took in doing this.
- Install the Content and Excerpt Word Limit Plug-in
- Create a new template file.
- Follow Step 3
- Follow Step 4
- Your Done
Step 3.
Add this chunk of code to the top of your page.<?php // Include WordPress query_posts('showposts=2'); ?>Note: It’s showing 2 posts, change the 2 to something like 5 and you will get 5 posts.
Then Add this code to where you wish to display the recent posts.
<?php while (have_posts()): the_post(); ?> <p><a href="<?php the_permalink(); ?>"><?php excerpt('13'); ?></a></p><span class="news_date"><?php the_time('d.M.Y') ?></span> <?php endwhile; ?>Step 4.
Your almost done, but the last part is to remove the read more link that is placed in there by our new plug-in. I know this isn’t a very clean way of doing things, but it works non-less. Add this code to your new page’s styles.p.readmore { display: none; }Step 5.
Your done! Now, like I said… there’s probally an easier cleaner way of doing things through php, but since I’m a wordpress newbie & had to figure things out for myself this is what I came up with.Feel free to post your own solutions as well.
Forum: Fixing WordPress
In reply to: How to show recent posts body.bump
Forum: Fixing WordPress
In reply to: How to make rotative posts?Forum: Plugins
In reply to: Subpages and their kiddosLooking for this solution as well!
Forum: Themes and Templates
In reply to: Adding some code in the menuSolved!
Code:
wp_list_pages('title_li=&' . 'link_before=<b>&' . 'link_after=</b>');