The Stack Overflow podcast is back! Listen to an interview with our new CEO.
4 Fixed typo
| link

Conditionally Query Custom Post TypeTypes by Post Meta for Blog Home Page?

3 Changed "to" to "by" in title
source | link

Conditionally Query Custom query: Show custom post types plus custom post type with post meta on blog homepagePost Type by Post Meta for Blog Home Page?

(Moderator's note: The question's original title was: "Custom query: Show custom post types plus custom post type with post meta on blog homepage")

I'm in need of help with a custom query.

  I have three custom post types: News"News", Events"Events", Stories"Stories".

  On the main blog page, only News and Events will show. The client can choose to mark a Story asas News via Verve Meta Boxesusing features of the plugin Verve Meta Boxes.

  If a Stories post has a post meta "mark-as-news",key of 'mark-as-news' then they willthe that post should display on the main blog page as well.

So, what I need help with writing is this:

If Stories has post meta "mark-as-news", then the main blog page will display custom post types News and Events, as well as Stories, in descending order.

If Stories has post meta 'mark-as-news' then the main blog page will display custom post types News and Events, as well as Stories, in descending order.

Can someone please assist?

Thanks!

Edit:

Edit: Perhaps a better way of wording this would be - Show custom post types News and Events, and if there is the key "mark-as-news" for post_meta, show Stories.?:

Show custom post types News and Events, and if there is the key 'mark-as-news' for post_meta, show Stories.

Custom query: Show custom post types plus custom post type with post meta on blog homepage

I'm in need of help with a custom query.

  I have three custom post types: News, Events, Stories.

  On the main blog page, only News and Events will show. The client can choose to mark a Story as News via Verve Meta Boxes.

  If Stories has post meta "mark-as-news", then they will display on the main blog page as well.

So, what I need help with writing is this:

If Stories has post meta "mark-as-news", then the main blog page will display custom post types News and Events, as well as Stories, in descending order.

Can someone please assist?

Thanks!

Edit: Perhaps a better way of wording this would be - Show custom post types News and Events, and if there is the key "mark-as-news" for post_meta, show Stories.

Conditionally Query Custom Post Type by Post Meta for Blog Home Page?

(Moderator's note: The question's original title was: "Custom query: Show custom post types plus custom post type with post meta on blog homepage")

I'm in need of help with a custom query. I have three custom post types: "News", "Events", "Stories". On the main blog page, only News and Events will show. The client can choose to mark a Story as News using features of the plugin Verve Meta Boxes. If a Stories post has a post meta key of 'mark-as-news' then the that post should display on the main blog page as well.

So what I need help with writing is this:

If Stories has post meta 'mark-as-news' then the main blog page will display custom post types News and Events, as well as Stories, in descending order.

Can someone please assist?

Thanks!

Edit:

Perhaps a better way of wording this would be?:

Show custom post types News and Events, and if there is the key 'mark-as-news' for post_meta, show Stories.

2 added 165 characters in body
source | link

I'm in need of help with a custom query.

I have three custom post types: News, Events, Stories.

On the main blog page, only News and Events will show. The client can choose to mark a Story as News via Verve Meta Boxes.

If Stories has post meta "mark-as-news", then they will display on the main blog page as well.

So, what I need help with writing is this:

If Stories has post meta "mark-as-news", then the main blog page will display custom post types News and Events, as well as Stories, in descending order.

Can someone please assist?

Thanks!

Edit: Perhaps a better way of wording this would be - Show custom post types News and Events, and if there is the key "mark-as-news" for post_meta, show Stories.

I'm in need of help with a custom query.

I have three custom post types: News, Events, Stories.

On the main blog page, only News and Events will show. The client can choose to mark a Story as News via Verve Meta Boxes.

If Stories has post meta "mark-as-news", then they will display on the main blog page as well.

So, what I need help with writing is this:

If Stories has post meta "mark-as-news", then the main blog page will display custom post types News and Events, as well as Stories, in descending order.

Can someone please assist?

Thanks!

I'm in need of help with a custom query.

I have three custom post types: News, Events, Stories.

On the main blog page, only News and Events will show. The client can choose to mark a Story as News via Verve Meta Boxes.

If Stories has post meta "mark-as-news", then they will display on the main blog page as well.

So, what I need help with writing is this:

If Stories has post meta "mark-as-news", then the main blog page will display custom post types News and Events, as well as Stories, in descending order.

Can someone please assist?

Thanks!

Edit: Perhaps a better way of wording this would be - Show custom post types News and Events, and if there is the key "mark-as-news" for post_meta, show Stories.

1
source | link