Skip to main content
added 2 characters in body
Source Link
Krzysiek Dróżdż
  • 25.5k
  • 9
  • 53
  • 74

We're working on a plugin where any logged-in user has the ability to submit a new "pitch", or standard post type with custom status of "pitch". Once the pitch is in the system, other logged-in users can vote on the idea, volunteer to participate, or comment on the story in progress.

It was simple to list all unpublished posts on a single view by querying the database for posts with post_status != 'publish'post_status != 'publish'. I'd like to set it up so both logged-in and unlogged-in visitors can click through on the title and view the post on a single view as well. Default WordPress behavior is to return a 404 unless you have sufficient permissions. I believe viewing permissions are handled in the query object, and I don't see a simple way to unset them.

Any creative ideas? Thanks in advance.

We're working on a plugin where any logged-in user has the ability to submit a new "pitch", or standard post type with custom status of "pitch". Once the pitch is in the system, other logged-in users can vote on the idea, volunteer to participate, or comment on the story in progress.

It was simple to list all unpublished posts on a single view by querying the database for posts with post_status != 'publish'. I'd like to set it up so both logged-in and unlogged-in visitors can click through on the title and view the post on a single view as well. Default WordPress behavior is to return a 404 unless you have sufficient permissions. I believe viewing permissions are handled in the query object, and I don't see a simple way to unset them.

Any creative ideas? Thanks in advance.

We're working on a plugin where any logged-in user has the ability to submit a new "pitch", or standard post type with custom status of "pitch". Once the pitch is in the system, other logged-in users can vote on the idea, volunteer to participate, or comment on the story in progress.

It was simple to list all unpublished posts on a single view by querying the database for posts with post_status != 'publish'. I'd like to set it up so both logged-in and unlogged-in visitors can click through on the title and view the post on a single view as well. Default WordPress behavior is to return a 404 unless you have sufficient permissions. I believe viewing permissions are handled in the query object, and I don't see a simple way to unset them.

Any creative ideas? Thanks in advance.

Capitalized the title
Link
MikeSchinkel
  • 37.5k
  • 14
  • 116
  • 132

Showing unpublished postsUnpublished Posts to loggedLogged-out usersUsers?

Source Link

Showing unpublished posts to logged-out users

We're working on a plugin where any logged-in user has the ability to submit a new "pitch", or standard post type with custom status of "pitch". Once the pitch is in the system, other logged-in users can vote on the idea, volunteer to participate, or comment on the story in progress.

It was simple to list all unpublished posts on a single view by querying the database for posts with post_status != 'publish'. I'd like to set it up so both logged-in and unlogged-in visitors can click through on the title and view the post on a single view as well. Default WordPress behavior is to return a 404 unless you have sufficient permissions. I believe viewing permissions are handled in the query object, and I don't see a simple way to unset them.

Any creative ideas? Thanks in advance.