Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
[WordPress] An example for how to export all 'Acme Data' custom post types with WP_Query.
<?php
$args = array(
'post_type' => 'acme_data',
'post_status' => 'publish',
'orderby' => 'title',
'order' => 'asc',
'posts_per_page' => -1
);
$custom_query = new WP_Query( $args );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.