• Hi,

    I wrote a post and wanted it to go public tomorrow, so I changed the timestamp to same time tomorrow.

    The post is not displayed at the frontpage but it’s listed in “Most Recent Posts”.
    Is this an error or am I doing it wrong?

Viewing 13 replies - 1 through 13 (of 13 total)
  • That’s not a bug in WP, it’s a fault in the plugin as it is not checking for the ‘published’ flag in the db.
    Contact the author ? they may not know about this and I’m sure they’d be pleased to know.

    Thread Starter kgp43

    (@kgp43)

    What do you mean about plugin? I did not install any pluging.

    What do you mean about author? Isnt it wordpress? (so desided to post this on the forums).

    Ahh … it’s WP code. That’s a bug then in that bit of the code. It should check the flag I mentioned.

    I would delete that bit of code and use a plugin. That possible ?

    Thread Starter kgp43

    (@kgp43)

    I dont quite understand your post

    My first blog was published with Blogger.com. Then, I installed a second blog using WordPress and imported old posts from my first blog on that second blog automatically through wordpress. Now that i’m trying to publish on my first (Blogger’s) blog, the new posts won’t publish and i get this message: “Are you looking for your blog? It is temporarily out of service. Please try again in a few minutes. Meanwhile, discover a better blogging tool.” The better blogging tool is a link that takes me to WordPress. Except if Blogger has been baught by WordPress or vice-versa, I don’t see how this could have happened except through a wordpress virus that would infiltrate Blogger’s system. Could you please tell me what I can do about it?

    kgp43, the question on everyones mind is, where exactly is “Most Recent Posts” displayed?

    lulu13, you should start your own thread (select an appropriate forum, then scroll to the end of that page for the new topic form). This is not only considered thread hijacking, it’s pretty off-target from the subject being discussed. I would also suggest avoiding the suggestion that WordPress is sending out a virus to attack other services. For technically-minded folk, stating something like that is not taken as casual conversation.

    Thread Starter kgp43

    (@kgp43)

    kgp43, the question on everyones mind is, where exactly is “Most Recent Posts” displayed?

    When you click a “Post Title” or a category, then the “Most Recent Posts” will be displayed in the right menu (just below the calender).

    kgp43 is this what you are seeing on your blog? URL please?

    Or is this what you see in your Control panel (wp-admin) ??

    Thread Starter kgp43

    (@kgp43)

    on my blog.

    Frontpage:
    https://www.anglerhelp.com/

    Latest article is “Mackerel Fishing Bait”
    Next article that goes live is “Kingfish Fishing Bait”, which is tomorrow.

    The post is not visible at the frontpage or in the calender, but it’s visible in the “Most Recent Posts” in the right menu of this page:
    https://www.anglerhelp.com/2006/01/09/mackerel-fishing-bait.html

    kgp43, what you have there is a bit of code embedded in the Blix theme.

    In that theme’s directory look for the following file: BX_functions.php. This holds the various custom functions the Blix theme puts to use, such as BX_get_recent_posts(), which is the function, or template tag, displaying your recent posts. You can edit the code to correct the issue you’re having with it. In the BX_get_recent_posts() function statement, look for this line:

    $posts = $wpdb->get_results("SELECT ID, post_title FROM " . $wpdb->posts . " WHERE post_status='publish' ORDER BY post_date DESC LIMIT " . $limit);

    This queries the database to collect your *recent* posts. Problem is, it doesn’t screen out posts dated in the future. To do that, we first add the following right above the quoted line:

    $now = current_time('mysql');

    Then we change your query to this:

    $posts = $wpdb->get_results("SELECT ID, post_title FROM " . $wpdb->posts . " WHERE post_status='publish' AND post_date <= '$now' ORDER BY post_date DESC LIMIT " . $limit);

    And that’ll do it.

    Thread Starter kgp43

    (@kgp43)

    Perfect ??

    So it was a problem with the skin?
    Where do I contact the developer of this skin so he can correct the error?

    You could try here:

    https://www.kingcosmonaut.de/blix/

    By the way, we prefer to call them ‘themes’ instead of skins, because they do more than just affect the layout of a site. As you’ve just learned. ;)

    Thread Starter kgp43

    (@kgp43)

    True ??

    Thanks for the help

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘Bug or?’ is closed to new replies.