Support » Themes and Templates » [Resolved] Single.php Content Conditional on Post Status?

[Resolved] Single.php Content Conditional on Post Status?

  • 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?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Had to edit a plugin file to get this done, but I did figure it out. Marking resolved 🙂



    Hi justbishop,

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




    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 :/

    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

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘[Resolved] Single.php Content Conditional on Post Status?’ is closed to new replies.