• darro

    (@darro)


    Hi All (Room34),

    Firstly fantastic plugin, something I’ve been looking to do for ages. Thanks

    One small issue I’m facing, I would like to turn on the “Use post date”, this appears to work fine on the individual post page, but on the “home page” the widget disappears completely when this option is enabled.

    Using “Twenty Seventeen” Theme, best I can tell it has the “the_archive_title()” function

    Home pages is set to “Your Latest Posts”

    Any advice on what I may be doing wrong?

    Darren

Viewing 15 replies - 1 through 15 (of 18 total)
  • Plugin Author room34

    (@room34)

    I think the description under the “Use post date” checkbox is incorrect… it may be a case that I modified the plugin’s functionality based on a user’s feature request, and didn’t realize that change conflicted with how this checkbox’s functionality is described.

    I was just looking at how I have the plugin set up on my own blog (https://blog.room34.com) and I actually have two widgets in the sidebar, one labeled “On This Day” which has “Use post date” unchecked, and another called “On This Post’s Date” with “Use post date” checked.

    On the home page (or archive pages) only the “On This Day” one is displayed, and on individual posts they’re both displayed.

    I think I may need to change the checkbox into a dropdown with different options, in order to get both your intended functionality and the current functionality (for people who are relying on it as it is) to work.

    Before I do that, you may want to consider the approach I have set up on my own blog as described above, unless you do not want to have both widgets (for “today” and the post’s date) displaying on individual posts.

    Thread Starter darro

    (@darro)

    Hey Room34

    Thanks for the quick reply.

    Ah, I can see how you have it working now. I never thought about having the widget twice.

    I’ve done this now. That will get me by.

    Thanks very much for your time, really appreciate it.

    Darren

    Plugin Author room34

    (@room34)

    Thanks… I do like the idea of having it work the way you thought it was going to work — especially since the instruction under the checkbox says it will! — but anyway in the next update I will either change that text, or change the configuration to a dropdown to allow both ways to work.

    Thread Starter darro

    (@darro)

    Hi Room43

    Thanks for the response!

    Different issue,

    I’m not sure if if I’ve found a bug or something else wrong in my site/config

    For example., I have a post on the https://gbn.net.au/2020/10/07/day-13-megalong-valley/, which is 7th October 2020

    1/ The two “on this day posts” are from 8th Oct 2019 and 2018 (so 8th, not 7th)
    2/ when i go to either of the posts it does not list the 2020 post in “on this day”

    I will state that almost no posts where written and physically posted on the day above and this is the “publish date”, most a written and posted several days later with a backdated publish date.

    Thanks

    • This reply was modified 4 years ago by darro.
    Plugin Author room34

    (@room34)

    This might be a timezone issue. Go to Settings > General and make sure the timezone is set correctly.

    Also be sure to use the city name not a UTC offset. This isn’t quite so important with this plugin, but I have another plugin for displaying calendar feeds and it is really important there. The city helps adapt for daylight saving time and also avoids some other obscure PHP issues.

    Thread Starter darro

    (@darro)

    Hi

    Yep, I have it set to “Sydney”, and the UTC and local time seem to be correct, and it has correctly marked the timezone as being in Daylight Savings

    Maybe the issue is I have a custom Date format as “l, F j, Y” as I wanted the Day included. so the date is posted as Thursday, “November 19, 2020”

    Plugin Author room34

    (@room34)

    It’s possible that the plugin itself is using one of the wrong date functions and is basing it off of UTC+0 instead of your local time. This was another thing I went through extensively with that calendar plugin but I think has been easier to not notice with this one. I live in the US Central timezone, so if the plugin were using UTC+0, I’d only notice a discrepancy on my site between 7 PM and midnight local time. I think most of the other users of this plugin that I’ve interacted with are also in the US, so it’s easy for this to go unnoticed… but not to someone in Australia!

    My calendar plugin’s users are primarily in Europe but all over the world, and any date/time issues with that one are much more readily apparent. Anyway, I’ll review this plugin’s use of the date/time functions and release an update if there are any problems there.

    What really confuses me as I type this is that I see on your site it’s showing a “today” post for November 20. It’s 5:45 PM (US Central) on November 18. I don’t see how it could be shifting by that much! But maybe once I’ve reviewed the code something will reveal itself.

    Thread Starter darro

    (@darro)

    Thanks Mate!

    Things are always a little odd here down under!

    Anyway your observation about “showing a “today” post for November 20″ is probably part of the problem, if you open the post (well when I do anyway), you will see it is really a post from the 19th, Which is the current day here today (10:49am)

    • This reply was modified 4 years ago by darro.
    Plugin Author room34

    (@room34)

    Yes… as it happens, today was a PERFECT day for you to report this issue, because the problem was happening on my own blog — one of the “today” posts was coming up as November 17, not November 18, because it was published at 1:43 AM.

    Turns out in one spot I was relying on a PHP function for generating a Unix timestamp that was not accounting for timezone discrepancies… so the plugin wasn’t actually loading the wrong posts, it was just displaying the wrong publish date if it was published at a time when your local timezone was on a different date than UTC+0/GMT. (Although, actually, in reverse… ugh.)

    Anyway, I realized that when I had written that line of code I was obviously way too deep inside my own head, because all I really needed to be doing was getting the post’s publish date with a standard WordPress function.

    I’ve reworked the code to do that, and it seems to be working properly. Unfortunately I have another issue that will delay releasing this update. I just updated my Mac OS this week, and was unaware that doing so would uninstall the Subversion command line app, so I’m not able to check in any code changes at the moment. Working on getting that installed now… an update should be available within the next few hours though!

    Thread Starter darro

    (@darro)

    Hey

    Rarely is anything I do considered good timing, so this makes a nice change 🙂

    Great that you’ve been able to find it that quickly. This certainly seems to be why we have the display issue.

    Does this also explain the missing 3rd post when looking at 2020/10/07?

    No rush on my part, just stoked that you could look at it

    Cheers

    Plugin Author room34

    (@room34)

    Does this also explain the missing 3rd post when looking at 2020/10/07?

    I’m not sure about that… we’ll have to see what happens when you get the update.

    Thread Starter darro

    (@darro)

    Great, thanks. Like I said, no rush on my part.

    Cheers

    • This reply was modified 4 years ago by darro.
    Thread Starter darro

    (@darro)

    Hey,

    Version 2.5.0.2 seems to fix the issue where the post date is showing up in the list with the wrong date (post listed as 20th, but was in-fact the 19th). Thanks for that. (I’m assuming that it hasn’t been fixed due to being later in the day and past 12am GMT)

    Does not seem to have helped with the missing 2020 posts, when viewing the posts from Oct 7th, it is only listing the 2018 & 2019

    Thanks

    Plugin Author room34

    (@room34)

    Ah, sorry, I misread this earlier. It’s by design that it doesn’t show any posts for the current year. This feature made more sense in the original version that only showed the current date, not the post’s date. I think it does make sense to have it show this year’s posts when it’s set to the post’s date. I’ll add that in the next update.

    Thread Starter darro

    (@darro)

    I can see that not showing the post for the date you are on would make sense, but that does not appear to be happening.

    If I go to the post for Oct 7th 2019, that post shows up in the the “on this day” widget.

Viewing 15 replies - 1 through 15 (of 18 total)
  • The topic ‘Different Home Page action’ is closed to new replies.