Hello,
I have a CPT “people” with ACF custom fields for name and e-mail address.
Now I would like to make a list of all names and e-mail addresses of all posts of that post-type.
How could I do that?
Thanks
Hi @Eagerbob
You can use a function called get_posts
to get posts of a specific post_type:
http://codex.wordpress.org/Template_Tags/get_posts
Thanks
E
Thanks, that works.
Only thing is there seems to be a limit to the number of posts that is displayed, more than 50 gives me a server error. any idea what causes this?
Cheers
OK,
the limit to the number of posts was a memory issue
increasing the memory for WP from 40 to 96MB fixed that
Thanks!