Forums

Archives widget not working (32 posts)

  1. john639
    Member
    Posted 4 months ago #

    Archives widget is not finding content, just defaults to current posts.
    The content is there. The previous page links at the bottom of the page find all the content fine.
    The category widget works fine and can find the content. I've deactivated and activated all the widgets 2x, removed inactive widgets and tested other archive widgets but none can find the content. I created an Archive Page, added it to the menu and pasted the code [archives] ( http://en.forums.wordpress.com/topic/how-do-i-create-an-archive#post-703054 ) it creates the list but cannot find the content.
    demo.thesensus.com

    Any ideas?

    Thanks!

  2. deepbevel
    Member
    Posted 4 months ago #

    Archives widget is not finding content, just defaults to current posts.
    The content is there. The previous page links at the bottom of the page find all the content fine.

    archives always show current content first, the older posts will be paged, depending on how many posts you display. unless I'm not understanding it sounds like it's as it should be...?

  3. john639
    Member
    Posted 4 months ago #

    sorry, should of explained better. If I search the archives for 2008 it will show the current posts for 2012. If I search for 2011 it will show me the current posts for 2012, etc. Seems like it will default to the current posts no matter what.

    you can test it yourself here: demo.thesensus.com

    Thanks!

  4. deepbevel
    Member
    Posted 4 months ago #

    I assume you have posts from the last 4 years? the oldest I could find was Dec 1st. But the year is not displayed in the post date.

  5. john639
    Member
    Posted 4 months ago #

    yes, the blog was started in 2008. The posts show up in the admin panel. Looks like the first one is dated dec. 2008. All the content is in the wp-uploads folder as well.

    Thanks.

  6. john639
    Member
    Posted 4 months ago #

    sorry for accuracy: wp-content/uploads

  7. Sherry Dedman
    Member
    Posted 4 months ago #

    I had this problem, and my recollection is that it was a conflict with a plug-in. See the end of this thread: http://wordpress.org/support/topic/category-pages-showing-all-blog-entries

    I can't remember if that was the specific plugin I was using, but if not, it was some kind of "category" plugin. Try disabling all plugins and see if your archives work correctly. Then turn the plugins on one by one and test. That should point you to the source of the problem.

    -Sherry

  8. deepbevel
    Member
    Posted 4 months ago #

    Yes, and have you customized archive.php? I wonder if it's getting the post dates? I don't see years listed.

  9. john639
    Member
    Posted 4 months ago #

    no, I haven't customized the archive.php but if you can tell how to do this I will do that....could be the theme author just didn't do it.

    Sounds like this may be the problem.

    Thanks!

  10. john639
    Member
    Posted 4 months ago #

    FYI: I'm not a php programmer....

  11. john639
    Member
    Posted 4 months ago #

    also the TAGS widget seems to find content just fine as well.

  12. john639
    Member
    Posted 4 months ago #

    and finally, when I search by dates in the WP admin under Posts, I can find yearly content easily.

  13. Sherry Dedman
    Member
    Posted 4 months ago #

    It's most likely a plug-in conflict. See above.

    -Sherry

  14. john639
    Member
    Posted 4 months ago #

    Thanks sherry,
    I've deactivated and activated all the widgets 2x, removed inactive widgets and tested other archive widgets but none can find the content. I created an Archive Page, added it to the menu and pasted the code [archives]
    ( http://en.forums.wordpress.com/topic/how-do-i-create-an-archive#post-703054 ) it creates the list but cannot find the content.

  15. deepbevel
    Member
    Posted 4 months ago #

    If it's a stock theme it's unlikely is has anything unussual going on for archives, but I could look at your archive.php template, if you want to post it:

    pastebin

    this is the code that the twentyten theme uses, I expect your would be similar:

    <h1 class="page-title">
    <?php if ( is_day() ) : ?>
    				<?php printf( __( 'Daily Archives: <span>%s</span>', 'twentyten' ), get_the_date() ); ?>
    <?php elseif ( is_month() ) : ?>
    				<?php printf( __( 'Monthly Archives: <span>%s</span>', 'twentyten' ), get_the_date( _x( 'F Y', 'monthly archives date format', 'twentyten' ) ) ); ?>
    <?php elseif ( is_year() ) : ?>
    				<?php printf( __( 'Yearly Archives: <span>%s</span>', 'twentyten' ), get_the_date( _x( 'Y', 'yearly archives date format', 'twentyten' ) ) ); ?>
    <?php else : ?>
    				 <?php _e( 'Blog Archives', 'twentyten' ); ?>
    <?php endif; ?></h1>
  16. deepbevel
    Member
    Posted 4 months ago #

    If you used the archives shortcode it will only reference what you already have in your archive template.

  17. Sherry Dedman
    Member
    Posted 4 months ago #

    I'm referring to plugins, not widgets.

    -Sherry

  18. john639
    Member
    Posted 4 months ago #

  19. john639
    Member
    Posted 4 months ago #

    Thanks Sherry,
    Sorry I actually meant plugins not widgets. I've got widgets on my brain!

    But I also did remove and then replace all the widgets on the widget page as well...

    I've been trying to trouble shoot this for a few days now.

  20. deepbevel
    Member
    Posted 4 months ago #

    to my limited knowledge your code looks about normal, you should try activating another theme with no plugnins just to see what happens.
    (you can quickly deactivate/reactivate them all by temporarily renaming the plugin folder on your server)

  21. john639
    Member
    Posted 4 months ago #

    hmmm, seems elusive.
    I've deactivated every single plugin. Tried it one another theme and it works fine. It finds all the content from any year. But when I switch to my theme it stops finding yearly content. I searched using 2008 and it can find the content.

    here's my demo with all the plugins deactivated: demo.thesus.com

    Thanks.

  22. john639
    Member
    Posted 4 months ago #

    sorry typo: demo.thesensus.com

  23. deepbevel
    Member
    Posted 4 months ago #

    Well now you know it's your theme. Assuming it's up to date, or possibly no longer supported, you could try a custom archive template, try this , I canceled a "hack" code that was in there.

    here it is

  24. john639
    Member
    Posted 4 months ago #

    sorry, did you edit my http://pastebin.com/PRzY3iA3 ?

    or should there be a link on your 'try this"

    FYI: I checked and the author says her theme is compatible with WP 3.3.1

  25. deepbevel
    Member
    Posted 4 months ago #

    yeah, sorry, I just added it.
    here it is again
    If the theme is up to date and running no plugins or mods, then it's a deeper problem and the author will probably have to fix it. My fix is just a shot in the dark as a work around. you could try a completely custom archive template as well, but no promise it will work.

  26. deepbevel
    Member
    Posted 4 months ago #

    <?php get_header(); ?>
    <div class="title-wrapper"><div class="title-bg"></div><div class="title clearfix"><div id="drag_btn" href="#"></div><div id="slide_btn" href="#"></div>
    
    <?/*php $post = $posts[0]; // Hack. Set $post so that the_date() works.*/ ?>
    
    <?php /* If this is a category archive */ if (is_category()) { ?>
    
    <h1>Archive for '<?php single_cat_title(); ?>'</h1>
    
    <?php /* If this is a tag archive */ } elseif( is_tag() ) { ?>
    	<h1>Posts Tagged '<?php single_tag_title(); ?>'</h1>
    
    <?php /* If this is a daily archive */ } elseif (is_day()) { ?>
    	<h1>Archive for <?php the_time('F jS, Y'); ?></h1>
    
    <?php /* If this is a monthly archive */ } elseif (is_month()) { ?>
    	<h1>Archive for <?php the_time('F, Y'); ?></h1>
    
    <?php /* If this is a yearly archive */ } elseif (is_year()) { ?>
    	<h1>Archive for <?php the_time('Y'); ?></h1>
    
    <?php /* If this is an author archive */ } elseif (is_author()) { ?>
    	<h1>Author Archive</h1>
    
    <?php /* If this is a paged archive */ } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?>
    	<h1>Blog Archives</h1>
    
    <?php } ?>
    <?php echo tag_description(); ?>
    </div>
    
    <!-- end frame -->
    </div>
    
    <div id="freespace-title"></div>
    
      <div class="content-wrapper clearfix"><div class="content clearfix">
        <ul id="sidebar-right">
          <?php teardrop_get_sidebar("blog_right")?>
    
        <div class="article">
          <?php teardrop_breadcrumb_nav()?>
          <?php get_template_part("inc/_list") ?>
        </div>
      </div></div>
      <div id="freespace"></div>
    
      <?php get_footer()?>
  27. john639
    Member
    Posted 4 months ago #

    sorry, this is a bit new to me. So I just copy the raw paste data from http://pastebin.com/PRzY3iA3 and that will reflect your edit?

    Thanks.

  28. deepbevel
    Member
    Posted 4 months ago #

    yes, overwrite the original, just make sure you keep the original.

  29. john639
    Member
    Posted 4 months ago #

    hmm, well,it doesn't seem to be working.
    I'll have to contact the author....

    Thanks so much for all your efforts!

  30. deepbevel
    Member
    Posted 4 months ago #

    Yes, a rather serious bug in the theme i'd say. I'll bet the author's forum has silmilar complaints. Good luck to you, and post your solution when you get it:)

Reply »

You must log in to post.

About this Topic