On these pages are my WordPress plugins, the odd article and my Support Forum.

For my random rantings on everything else please visit my blog at Yellow Swordfish

WP Plugins


Articles

If you find any of my plugins useful, please comsider a donation towards my running costs.

Thank you

Current User: Guest
Please consider registering

 
Search Forums:


 




pages not displaying in category archives

UserPost

12:48 am
8 Apr 2008


earth architect

Guest

 
1

Ive tried everything I can think of. Still can not get Pages to display at all when clicking a category.

I have a category called “bamboo”. with only one post linked to it.

If I install Page Category Plus, everything is working fine.

Then I browse to the 5 WP Pages i have already on my site.

Your plugin properly shows the categories available and I choose the one called “bamboo” and hit “save”.

I proceed to do this for all 5 Pages which is in the following heirarchy


bamboo

- bamboo ballyhoo

- varieties

- soul statement

- contact bamboo ballyhoo


after saving each page, I browse to the site and only the category count is updated?

If I click the “bamboo” category, it still lists the single post associated with it, but no pages are listed?

Am I missing something? It seems like my “archives” template is configured normally.

Is there something else I have to do to get the archives to show the Pages after saving them?


Many thanks for your effort.


1:08 am
8 Apr 2008


Yellow Swordfish

Admin

Peterborough, England

posts 4481

 
2

At first sight it looks like you have done everything right. The answer may be in the way the template tag for showing category listings is configured.


Page Category Plus really uses a loophole in the WP code. Because WP does not, out of the box, allow categries to be assigned to pages, the wp code never expects them and therefore does not bother to filter them out. So somewhere - when you click on the category - a standard template tag is being run. if you could find that in your theme and send me the line of code it might be useful in trying to work out what is missing.

8:32 am
8 Apr 2008


earth architect

Guest

 
3

I actually tried uploading the default theme's archive.php into my theme and that did not work. I believe that it is the correct template file being executed.

here is the php located in my archive.php file.(i removed the divs to make it easier to read.)


<?php is_tag(); ?>
<?php if (have_posts()) : ?>

<?php $post = $posts[0]; // Hack. Set $post so that the_date() works. ?>
<?php /* If this is a category archive */ if (is_category()) { ?>
<h2 class=”pagetitle”>Archive for the &#8216;<?php single_cat_title(); ?>&#8217; Category</h2>
<?php /* If this is a tag archive */ } elseif( is_tag() ) { ?>
<h2 class=”pagetitle”>Posts Tagged &#8216;<?php single_tag_title(); ?>&#8217;</h2>
<?php /* If this is a daily archive */ } elseif (is_day()) { ?>
<h2 class=”pagetitle”>Archive for <?php the_time('F jS, Y'); ?></h2>
<?php /* If this is a monthly archive */ } elseif (is_month()) { ?>
<h2 class=”pagetitle”>Archive for <?php the_time('F, Y'); ?></h2>
<?php /* If this is a yearly archive */ } elseif (is_year()) { ?>
<h2 class=”pagetitle”>Archive for <?php the_time('Y'); ?></h2>
<?php /* If this is an author archive */ } elseif (is_author()) { ?>
<h2 class=”pagetitle”>Author Archive</h2>
<?php /* If this is a paged archive */ } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?>
<h2 class=”pagetitle”>Blog Archives</h2>
<?php } ?>

<?php while (have_posts()) : the_post(); ?>

<h3 id=”post-<?php the_ID(); ?>”><a href=”<?php the_permalink() ?>” rel=”bookmark” title=”Permanent Link to <?php the_title_attribute(); ?>”><?php the_title(); ?></a></h3>
<p class=”infogreen”><?php the_time('l, F jS, Y') ?></p>
<p class=”postmetadata”><?php the_tags('Tags: ', ', ', '<br />'); ?> Posted in <?php the_category(', ') ?> | <?php edit_post_link('Edit', '', ' | '); ?> <?php comments_popup_link('No Comments &#187;', '1 Comment &#187;', '% Comments &#187;'); ?></p>

<?php endwhile; ?>
<!–
<?php trackback_rdf(); ?>
–>
<?php else : ?>

<h2 class=”center”>Not Found</h2>
<?php include (TEMPLATEPATH . '/searchform.php'); ?>

<?php endif; ?>

8:57 am
8 Apr 2008


earth architect

Guest

 
4

I forgot to list my specs.

Im running WP 2.5 and a fairly extensive list of plugins.(all are newest versions)

  • add lightbox
  • admin drop down menu by Ozh
  • akismet
  • articles
  • BackUpWordPress
  • BreadCrumb NavXT core
  • CryptX
  • Dagon Design Sitemap Generator
  • Faqtastic
  • Flash video player
  • google xml sitemaps
  • Headspace 2
  • Inline google maps
  • Nextgen gallery
  • p2p converter
  • Page Category Plus
  • RSS Images
  • Search Unleashed
  • Simplepie core
  • Simplepie plugin for Wordpress
  • Slimbox plugin
  • Subscribe2

My next step is to try a fresh install of WP 2.5 on a test server (subdomain) and see if i can get the Page Category Plus to work over there.. Sorry to be such a bug!

I really appreciate your response. i may just be able to figure this out if I keep trying! Ok back to the code.


9:09 am
8 Apr 2008


earth architect

Guest

 
5

Interesting, it works correctly on the test server's default install of WP 2.5 with no other plugins activated AND using my theme files.

I suppose that means there is a conflict with another plugin?

9:25 am
8 Apr 2008


Yellow Swordfish

Admin

Peterborough, England

posts 4481

 
6

Hold the fort… I am looking into it…

9:38 am
8 Apr 2008


earth architect

Guest

 
7

I think the problem is somewhere in my installation(I recently updated the site with WP 2.5) because I just systematically turned off every plugin and checked to see if it worked and nope…

So i guess the logical conclusion to this is that my installation is somehow funky.


I really appreciate you checking it out sorry to waste your time.

I think this plugin is one of the best.

I guess I have to reinstall everything from scratch and see where that gets me.. only problem is that it is my live site for my business, so i can feel the headache coming on already! ha! Funny how everything else seems to work fine…


9:51 am
8 Apr 2008


Yellow Swordfish

Admin

Peterborough, England

posts 4481

 
8

OK - this is my fault. I'm working on it! Have something in an hour or so.


11:26 am
8 Apr 2008


Yellow Swordfish

Admin

Peterborough, England

posts 4481

 
9

I am going to email you a replacement to try….

4:01 pm
8 Apr 2008


earth architect

Guest

 
10

Oh my goodness, that totally worked!

Thank you so much!!!!

I am bowing to you this morning and sending you many blessings as I can hardly contain my appreciation!!!

Thank you Andy! This guy rocks!!!!



Reply to Topic: pages not displaying in category archives

NOTE: New Posts are subject to administrator approval before being displayed

Guest Name (Required):

Guest EMail (Required):

Guest URL (required)

Math Required!
What is the sum of: 1 + 9        (Required)

Topic Reply:


 
 

About the Stuff at Yellow Swordfish forum

Currently Online:

Yellow Swordfish

9 Guests

Maximum Online: 71

Forums:

Groups: 3

Forums: 15

Topics: 1703

Posts: 11495

Members:

There are 780 members

There are 729 guests


Yellow Swordfish has made 4481 posts

Top Posters:

Mr Papa - 1167

-Radio- - 475

ovizii - 84

jfv - 80

angelic007 - 66

Administrator: Yellow Swordfish | Moderators: Yellow Swordfish, Mr Papa, -Radio-


© Simple:Press Forum - Version 3.1.3 (Build 356)