• 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!

Viewing 15 replies - 1 through 15 (of 31 total)
  • 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…?

    Thread Starter john639

    (@john639)

    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!

    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.

    Thread Starter john639

    (@john639)

    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.

    Thread Starter john639

    (@john639)

    sorry for accuracy: wp-content/uploads

    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

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

    Thread Starter john639

    (@john639)

    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!

    Thread Starter john639

    (@john639)

    FYI: I’m not a php programmer….

    Thread Starter john639

    (@john639)

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

    Thread Starter john639

    (@john639)

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

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

    -Sherry

    Thread Starter john639

    (@john639)

    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.

    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>

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

Viewing 15 replies - 1 through 15 (of 31 total)
  • The topic ‘Archives widget not working’ is closed to new replies.