My Post

‘orderby’ => ‘post_date’,
‘order’ => ‘ASC’,
‘post_status’ => ‘publish’,
‘posts_per_page’ => -1
);

$current_user_posts = get_posts( $args );
//echo ”

"; print_r($current_user_posts); die;
foreach ($current_user_posts as $post) {
?>

$trimmed_content = wp_trim_words( $content, 5, NULL );
echo $trimmed_content
?>

Priority

Posted in foreach($category_detail as $cd){
?>


Tagged $posttags = get_the_tags($postid);
if ($posttags) {
foreach($posttags as $tag) {
?>

Leave a comment
Edit