Support » Plugin: Enhanced Text Widget » Bug introduced with v1.4.1

  • Resolved Unbeliever64


    I use multiple Enhanced Text Widgets on my site, and love this plugin!

    However, the last ETW update has introduced a weird bug for me.

    One of the places I use this widget is inside “the loop” (the Graphene theme lets you use widgets almost anywhere), to display the publication time for each post.

    Here is the code I use your widget to display:

    <div style="font-family: Verdana, Arial, sans-serif; font-size: 7.5pt; color: #000;"><strong><?php the_time('g:i a'); ?></strong></div>

    This worked perfectly for months. Since the last ETW update, however, the PHP call seems like it’s getting cached; it displays the SAME time (the time of the first displayed post) for every post on a page. Move on to an “older posts” page, and it will display the time for the first post on THAT page, for every post on the page.

    To verify the problem was with ETW, I downloaded another plugin (“PHP Code Widget”, which is similar to yours but not as advanced, and moved my code to that. It works perfectly again!

    If it helps track the problem down, the Graphene “action hook” (widget area) where your widget is suddenly having trouble is called “Graphene Before Post Content”. It fires after the post title is displayed, immediately before displaying the post body.

    The blog area of my site is

    Until I hear from you, I’ll be using the “PHP Code Widget” in that one spot, so my blog post times come out right — but I’d much rather stick with your widget, if you can figure out what’s wrong.

    Thanks in advance!

Viewing 5 replies - 1 through 5 (of 5 total)
  • I am having the same problem, also trying to use the widget in the loop on the front blog page using the Semiologic theme.

    Using something like,

    <?php the_author(); ?>

    will print the author of the first post on every post listed on the front page.

    The same code works fine with PHP Code Widget, but I would also like to take advantage of the advanced options your widget offers.

    Plugin Author bostondv


    Thanks for the feedback guys!

    You’re right that is was getting cached with the latest version due to some refactoring I had done.

    After reading your comments I think caching is going to cause more problems than it solves with a widget like this, so I’ve just released 1.4.2 which removes the caching.

    Can you test it out and let me know if that solves it?

    That seems to have done the trick!

    I have removed “PHP Code Widget” and put back my original “Enhanced Text Widget” in the Loop. My post times remain correct; no more repeats!

    This makes me very happy. I use ETW in multiple places all around my site, whenever I need a bit of text or snippet of code, and I hated having to swap out for another widget in this one location.

    Thanks for listening, and fixing the problem!

    That fixed it for me. Thanks a bunch!

    Plugin Author bostondv


    Good to hear!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Bug introduced with v1.4.1’ is closed to new replies.