$case_args = array(
'numberposts' => 4,
'offset' => 0,
'category' => 0,
'orderby' => 'post_date',
'order' => 'DESC',
'include' => '',
'exclude' => '',
'meta_key' => '',
'meta_value' =>'',
'post_type' => 'cases',
'post_status' => 'publish',
'suppress_filters' => true
);
$recent_cases = wp_get_recent_posts( $case_args, ARRAY_A );
foreach ($recent_cases as $case) {
$url = get_permalink($case['ID']);
$cases[] = array("ID"=>$case['ID'], "thumbnail" => get_the_post_thumbnail_url($case['ID'], 'large'), "title"=>$case['post_title'], "description"=>$case['post_content'], "url"=>$url);
}
-
Notifications
You must be signed in to change notification settings - Fork 0
License
ReneDyhr/Wordpress-Cases
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published