• Resolved RDOwens

    (@rdowens)


    Several years ago someone here offered to write a plugin for me. I use it all on my sites.
    On This Day:
    http://www.dagondesign.com/articles/wordpress-plugin-this-day/

    This plugin lists all posts made on the same day from previous years.

    I have attempted several times to contact the author for help, but it has gone unanswered.

    Issue
    This plugin will list all the auto drafts that are in the system in its list of posts. I suspect that this is because of how it is collecting the posts from MYSQL. I do not know how to modify that so it doesn’t do it.

    My current workaround is to delete the Auto Drafts, but I would love it if this plugin did not call them.

    Is anyone capable and willing to take a look at this? I imagine for those who know how to write these, this is a fairly simple modification. I would be most appreciative.

    Thank you.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The code for the plugin you linked to is only including items with a type of “post” and a status of “published”. Where is autodraft appearing?

    I found one article about a problem with Atahualpa theme – if you are using that read this:
    http://forum.bytesforall.com/showthread.php?t=7100&highlight=Auto+Draft
    http://wordpress.org/support/topic/new-post-title-stuck-as-auto-draft?replies=6

    Here is a general purpose article about it:
    http://wordpress.org/support/topic/auto-draft?replies=7

    Where is autodraft appearing, in the post title? Is it the entire title or part of the title? What is the exact spelling of auto draft, where it is showing up? (It can be excluded from the SQL that pulls posts, but the SQL has to be looking for the exact spelling of the term)

    Thread Starter RDOwens

    (@rdowens)

    Thank you kindly for responding.

    I am using Twenty Ten as the theme.
    The spelling is: Auto Draft
    It links to a post with the number despite me using custom permalinks. When the link is clicked, I receive a not found error.

    The post status of the linked Auto Draft is auto-draft. The title is Auto Draft. The post_type is post.

    Hi

    Are you sure the version of the plugin you are using is the most recent one on this page? The latest version is 1.4
    http://www.dagondesign.com/articles/wordpress-plugin-this-day/

    I didn’t look at the code very thoroughly but I see

    AND post_type = 'post'
    {$pass_check}
    AND post_status = 'publish'

    That code would not be including any posts with a status of auto-draft. That is why I asked if you are using the most recent version.

    If you have an older version, you can post the plugin code in a WordPress pastebin, post the URL here, and I will look at it.

    And of course, I may be overlooking something obvious, also.

    Thread Starter RDOwens

    (@rdowens)

    Holy smokes! I was using 1.3. I just changed to 1.4 and all is now resolved. I can’t believe I missed that.

    Thank you ever so much for your help. You just solved something that had been stumping me. I appreciate it.

    May your day be perfect; you deserve it.

    Hi

    Glad to hear it.
    And, thank you.
    I am glad to have been able to help you.
    take care

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Update a Plugin’ is closed to new replies.