Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

wp get_posts return ids

get_posts(array(
    'fields'          => 'ids', // Only get post IDs
    'posts_per_page'  => -1
));
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #wp #return #ids
ADD COMMENT
Topic
Name
1+6 =