[wp-hackers] do I need to register custom post_status-es?
Tim Moore
tim.moore at maine.edu
Fri Mar 26 12:12:31 UTC 2010
Davit:
I think you are using the wrong post_status value. Looking at
http://codex.wordpress.org/Post_Status_Transitions, I'm seeing the following
as built-in post_status's:
- publish
- draft
- private
- future
- pending
- new
Perhaps changing post_status=active to post_status=publish or
post_status=inactive to post_status=draft would help.
Tim
On Fri, Mar 26, 2010 at 7:44 AM, Davit Barbakadze <jayarjo at gmail.com> wrote:
> Hi Mike,
>
> Thanks, but I do not actually use or need to use either meta_value or
> meta_key. I just can't filter my custom type posts, by custom
> post_status fields.
>
> :(
>
> On Wed, Mar 24, 2010 at 9:28 PM, Mike Schinkel
> <mikeschinkel at newclarity.net> wrote:
> > Davit:
> >
> > On Mar 24, 2010, at 7:29 AM, Davit Barbakadze wrote:
> >> I'm using the following code to retrieve custom post_type-es:
> >>
> >> $wp_query = new
> >>
> WP_Query("post_type=event&post_status=$post_status&posts_per_page=15&paged=$paged{$search}");
> >>
> >> Quoted line resolves for example to:
> >> post_type=event&post_status=active&posts_per_page=15&paged=1 (string
> >> has been printed out not just made up).
> >>
>
More information about the wp-hackers
mailing list