Solved

wordpress make future posts public

Posted on 2014-10-17
1
109 Views
Last Modified: 2014-10-23
I send out a weekly email that has links to articles on our website.  I'd like to set these articles to show one-per-day on our website, but allow the email subscribers a direct link to the articles. My problem is that when I set the date in the future, the article isn't available unless someone is logged in as an admin.  I'd also like the post to hit our RSS feed daily and not all the same day.

I've searched for plugins or code hacks, but can't find anything to do this.

Any suggestions are most appreciated.

Thanks,

Steve
0
Comment
Question by:stkoontz
1 Comment
 
LVL 70

Accepted Solution

by:
Jason C. Levine earned 500 total points
ID: 40387266
y problem is that when I set the date in the future, the article isn't available unless someone is logged in as an admin.

The solution is to not use the scheduler, which hooks into core WordPress assumptions about visibility.

The better solution would be to use a custom fields that suppresses display of the post on the site until the posted date comes around but you still set the status of the post to publish.  A second custom field could be used to store an access code that you embed in the link in the email to allow direct inbounds to see it (e.g. www.yoursite.com/hidden-post/?look=atme).

The above is just a fast reaction.  I'm sure there's an even simpler way to do it. Perhaps code that checks post against referrer and query string before it will display?  If there is no referrer and the query string is present, display it.  If not, refuse until X date passes.
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

WordPress can be pretty daunting, especially for a beginner, so I thought it might be a good idea to write an article to show how easy it is to get started in WordPress and to design a custom theme.  The first step is to check with your hosting comp…
So you have coded your own WordPress plugin and now you want to allow users to upload images to a folder in the plugin folder rather than the default media location? Follow along and this article will show you how to do just that!
The purpose of this video is to demonstrate how to insert an Iframe into WordPress. This will be demonstrated using a Windows 8 PC. Go to your WordPress login page. This will look like the following: mywebsite.com/wp-login.php : Open Page or Post…
This video teaches users how to migrate an existing Wordpress website to a new domain.

708 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now