How do I get custom posts using the API?
-
I found the example and have it working, except that it is only returning posts, but I want it to include posts plus custom post types. Here’s what I have:
$settings = array(
‘daily’ => TRUE,
‘daily_range’ => 2,
‘limit’ => 5,
‘strict_limit’ => FALSE,
‘post_types’=>’post,attachment,bio,list’
);
$topposts = get_tptn_pop_posts( $settings );How do I delimit the post_types parameter?
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘How do I get custom posts using the API?’ is closed to new replies.