WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Single.php Content Conditional on Post Status? (6 posts)

  1. justbishop
    Member
    Posted 3 years ago #

    Hi :)

    I need to have a certain portion of code hidden if the viewer is looking at a single post that is set to publish in the future (I'm using get_posts('post_status=future') on a custom template to list out these posts). I'm failing miserably with trying if (post_status('future')) (I know, it was a longshot). Does this ability exist in a way that I'm missing?

  2. justbishop
    Member
    Posted 3 years ago #

    Had to edit a plugin file to get this done, but I did figure it out. Marking resolved :)

  3. shuggar
    Member
    Posted 2 years ago #

    Hi justbishop,

    could you share your solution with us?
    I am trying to figure out a conditional tag checks the post_status.

    Thanks

  4. justbishop
    Member
    Posted 2 years ago #

    I don't remember the exact solution, but I'm pretty sure it was an edit done to one of the eshop plugin files, as I was trying to hide the "add to cart" panel on posts set to future publish. You might want to search posts on the eshop support site forums under the names justbishop or justbishop2 for the thread.

    Sorry I couldn't be of more help :/

  5. cmarco
    Member
    Posted 2 years ago #

    Hi justbishop, sorry to be completely out of topic but I cant find other way to contact you... I have seen your post about an ebay style feedback plugin about a year old. It seemed that you found a solution that worked well. Could you please pass me the codes?? you can email me at sierramail79@gmail.com if you preffer. Thanks and sorry for the intrusion

  6. justbishop
    Member
    Posted 2 years ago #

Topic Closed

This topic has been closed to new replies.

About this Topic