Answers for "wordpress function to get all posts and pages"

0

wordpress get all custom posts

$posts = get_posts([
  'post_type' => 'custom',
  'post_status' => 'publish',
  'numberposts' => -1
  // 'order'    => 'ASC'
]);
Posted by: Guest on July-23-2021

Code answers related to "wordpress function to get all posts and pages"

Browse Popular Code Answers by Language