문제

I have an import script that uses wp_insert_post() to add events wordpress. The script works and is basically a foreach loop of array elements that calls the above function multiple times.

My issue is that in the admin for the event custom post type I see this: wordpress admin

So I see a count having a value, but no posts found. If I filter dates nothing shows. Does anyone have any ideas? NB: I can go to the url and it works for a single event. But not for multiple events.

도움이 되었습니까?

해결책

The problem was that the import script had post_status as 'published' not 'publish' hope this helps someone. :facepalm

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 wordpress.stackexchange
scroll top