• 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] ( https://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 - 16 through 30 (of 31 total)
  • I’m referring to plugins, not widgets.

    -Sherry

    Thread Starter john639

    (@john639)

    Thread Starter john639

    (@john639)

    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.

    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)

    Thread Starter john639

    (@john639)

    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.

    Thread Starter john639

    (@john639)

    sorry typo: demo.thesensus.com

    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

    Thread Starter john639

    (@john639)

    sorry, did you edit my https://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

    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.

    <?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()?>
    Thread Starter john639

    (@john639)

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

    Thanks.

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

    Thread Starter john639

    (@john639)

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

    Thanks so much for all your efforts!

    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:)

    Thread Starter john639

    (@john639)

    FYI:

    Thanks everyone for your help. It was a bug and the author just fixed it! :]

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