crapcat
Forum Replies Created
-
Forum: Themes and Templates
In reply to: RSS Widget in Sidebar – Styling?so no one in the WordPress world knows how to style the RSS Sidebar widget at all? or to create a stylised feed?
I’ve seen them on other WordPress sites, so it must be possible!
Forum: Themes and Templates
In reply to: RSS Widget in Sidebar – Styling?still hoping for help ??
Forum: Themes and Templates
In reply to: RSS Widget in Sidebar – Styling?is this in the wrong section? Please help!
Forum: Themes and Templates
In reply to: Show only X Category Posts on Pageoh I fixed it! It is cAsE sEnSiTiVe!!!
You rock, thanks so much!
Forum: Themes and Templates
In reply to: Show only X Category Posts on PageOk my code is now:
<?php $catID = 0; if (is_page('New in Store')) { $catID=3; } elseif (is_page('In the Press')) { $catID=6; } elseif (is_page('Contact')) { $catID=7; } if ($catID) { $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; query_posts("cat=$catID&paged=$paged"); } ?>
They all work! Except for New In Store
I checked the catID is correct (yes, it is 3) and that there is a post in that category, (yes, it is called “This is a post in the NIS category”) with the category ticked.
But it does not show!
Forum: Themes and Templates
In reply to: Show only X Category Posts on PageIf my page is called “In the Press” or “New in Store” do I have to put hard spaces?
Because I’ve created these two pages, and linked their catId as you example above, but it shows no posts, even though I have written a post for each category for testing purposes.
This is on my local test machine, so I can’t show you the actual site.
<?php $catID = 0; if (is_page('New in Store')) { $catID=3; } elseif (is_page('In the Press')) { $catID=6; } if ($catID) { $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; query_posts("cat=$catID&paged=$paged"); } ?> <?php if (have_posts()) : while (have_posts()) : the_post(); ?> <div class="post" id="post-<?php the_ID(); ?>">
Forum: Themes and Templates
In reply to: Show only X Category Posts on PageThanks stvwlf, but I dont get this bit at all :
if ($catID) { $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; query_posts("cat=$catID&paged=$paged"); } ?>
am I meant to change something in there to get it to work? catId?
Forum: Themes and Templates
In reply to: Show only X Category Posts on PageI had an idea!
Is there a way to
get
<?php wp_list_categories( array('show_count=0&title_li=') ); ?>
To display the same as
<?php wp_page_menu( array( 'show_home' => 1 ) ); ?>
?
I tried change page to category and categories, but they are invalid.
Just having my categories display like the menu array actually solves my problem if someone can tell me how to do it?