![]() | | ||||||||
| | #1 |
| Warrior Member War Room Member Join Date: Aug 2009
Posts: 22
Thanks: 2
Thanked 7 Times in 1 Post
|
Hi All, I'm having a bit of an issue trying to have a page just display the posts from one category. I'm using exec-php to allow the posting of php and the following code: Code: <?php query_posts('category_name=Reviews&showposts=100'); ?>
<?php while (have_posts()) : the_post(); ?>
<div><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a> </div>
<?php endwhile;?> Apologies if this breaks a rule, if it does i'll change it but it helps show the issue Any help is greatly appreciated! Thanks |
| | |
| | #2 |
| Ungrateful S.O.B. War Room Member Join Date: May 2006 Location: Ellijay, GA, USA. (Talk about being in the woods!)
Posts: 1,393
Thanks: 253
Thanked 57 Times in 45 Posts
|
Hi Ally, Not sure, but I think wordpress builds a page for the category all unto itself. Say your category is "birds," then if you provide a link to www.yoursite.com/birds/ then a page will appear listing all the posts in the category "birds." Would that do what you want? Kirk |
| "We are not here to sell a parcel of boilers and vats, but the potentiality of growing rich beyond the dreams of avarice." Dr. Samuel Johnson (Presiding at the sale of Thrales brewery, London, 1781) | |
| | |
| | #3 |
| Warrior Member War Room Member Join Date: Aug 2009
Posts: 22
Thanks: 2
Thanked 7 Times in 1 Post
|
Thanks Kirk, I had forgotten about that, the main issue I have is that I have the Reviews section in my menu which uses the wp pages function to show them. So if I used that I would have to add it manually (which may work). I could also use a php re-direct to that domain.com/page/ I'll go and have a play with it and see what happens. Ally |
| | |
| | #4 | |
| Ungrateful S.O.B. War Room Member Join Date: May 2006 Location: Ellijay, GA, USA. (Talk about being in the woods!)
Posts: 1,393
Thanks: 253
Thanked 57 Times in 45 Posts
| Quote:
There is also a plugin called "redirect" which may have some flexibility built into it. Takes advantage of the wp-permalink system. Set up a dummy page and have it redirect to the category. Kirk | |
| "We are not here to sell a parcel of boilers and vats, but the potentiality of growing rich beyond the dreams of avarice." Dr. Samuel Johnson (Presiding at the sale of Thrales brewery, London, 1781) | ||
| | |
| | #5 |
| Warrior Member War Room Member Join Date: Aug 2009
Posts: 22
Thanks: 2
Thanked 7 Times in 1 Post
|
I'll have a look at that plugin. At the moment I've redirected manually. I've also just seen how to get around the page listing by excluding categories using the following code Code: <?php wp_list_pages('exclude=17,38' ); ?> Ally |
| | |
![]() |
|
| Tags |
| category, post, wordpress |
| Thread Tools | |
| |
![]() |