![]() |
|
|||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
Hi, didn't want to stay away from the forum too long, so here's another.
I want to implement categories in line with Chris's post on Pearsonified, and I see he's put a custom function in the sidebar.php: thesis_recent_posts_widget('asides', 'Recent Asides', 6); thesis_recent_posts_widget(); Presumerably I shld put this in the custom-function.php ... but where? Is there anything else I need to do? Do I update the sidebar.php with anything? I've had a bit of a play, but remain clueless. Raquel |
|
|||
|
I'm confused about what you are wanting to do, exactly.
The thesis_recent_posts_widget() will display recent posts in your sidebar -- provided you are not using any WordPress widgets via the Design -> Widgets menu of your admin panel. If you aren't using any widgets, then the code in sidebar.php will display recent posts. I can't be more specific without knowing precisely what you're trying to accomplish, though. Sorry, pal!
__________________
Rick Beckman, Kingdom Geek & Thesis Support Ninja (Forums Moderator) [ Thesis Manual | Help, my posts don't show up! ] Amazon Wishlist | My custom.css Get Thesis! | Earn Cash as a DIY Affiliate! |
|
|||
|
Ha ha, don't worry I'm always confused about what I'm doing.
Basically I wanted to be able to create several categories and then list the five or six most recent posts under those categories as per Chris's blog: What Every Blogger Needs to Know About Categories — Pearsonified so when I stumbled upon the bit of code in the sidebar.php I thought they might be related .. but I think I need to go back to school! No seriously, I'll read back over Chrís's post and try implementing it as per his instructions, PS: thanks for the link of pretty permalinks, working on it ... ![]() Raquel |
|
|||
|
Okay, then yeah, that code in sidebar.php is what you want, provided you aren't using WordPress widgets in that sidebar.
Just follow the example code in that file, copying thesis_recent_posts_widget() as many times as you need to in a row, adjusting the variables to refer to the correct categories. Again, just be sure to follow the example Chris provided in the code.
__________________
Rick Beckman, Kingdom Geek & Thesis Support Ninja (Forums Moderator) [ Thesis Manual | Help, my posts don't show up! ] Amazon Wishlist | My custom.css Get Thesis! | Earn Cash as a DIY Affiliate! |
|
|||
|
What I'd like to know is how Chris did those cool footnotes in that post... is that a plug in?
|
|
|||
|
Chris does all his footnotes by hand 'cause he's just that hardcore.
You can get very similar footnotes using WP-Footnotes, which has a fully customizable display via its settings page. landonray, if you are using widgets, you'll want to do something like this. Copy this into your sidebar.php file (assuming you've made no other edits to that file, overwriting your file with this code won't hurt anything). PHP Code:
You can use the recent entries function either before the widget conditional or after it, but you can't insert the code within it or it will be overridden by widgets.
__________________
Rick Beckman, Kingdom Geek & Thesis Support Ninja (Forums Moderator) [ Thesis Manual | Help, my posts don't show up! ] Amazon Wishlist | My custom.css Get Thesis! | Earn Cash as a DIY Affiliate! |
|
|||
|
Sure I can.
![]() This code: Code:
thesis_recent_posts_widget(); Code:
if (!dynamic_sidebar(1)) {
// This function is really just a placeholder. The WordPress Links Widget is better, so use that.
wp_list_bookmarks(thesis_bookmarks());
}
__________________
Rick Beckman, Kingdom Geek & Thesis Support Ninja (Forums Moderator) [ Thesis Manual | Help, my posts don't show up! ] Amazon Wishlist | My custom.css Get Thesis! | Earn Cash as a DIY Affiliate! |
|
|||
|
My sidebar.php now looks like this, just as you said above.
Quote:
<?php query_posts('category_name=Popular&showposts=5'); while (have_posts()) : the_post(); ?> <li><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?> <?php comments_number('0', '1', '%'); ?></a></li> <?php endwhile; ?> then it shows the right data, but looking all shabby, with no title, etc. Is there somewhere else I'm supposed to add that code? THx |
![]() |
| Thread Tools | |
| Display Modes | |
|
|