"", ), $atts); global $post; $postid = $atts['id']; $acrds_cat_name = get_post_meta( $postid, 'acrds_cat_name', true ); $acrds_orderby = get_post_meta( $postid, 'acrds_orderby', true ); $acrds_order = get_post_meta( $postid, 'acrds_order', true ); $acrds_tcolor = get_post_meta( $postid, 'acrds_tcolor', true ); $acrds_fsize = get_post_meta( $postid, 'acrds_fsize', true ); $acrds_cfsize = get_post_meta( $postid, 'acrds_cfsize', true ); $acrds_ccolor = get_post_meta( $postid, 'acrds_ccolor', true ); $acrds_bgcolor = get_post_meta( $postid, 'acrds_bgcolor', true ); $acrds_textalign = get_post_meta( $postid, 'acrds_textalign', true ); $acrds_hdcolor = get_post_meta( $postid, 'acrds_hdcolor', true ); $excerpt_lenght = get_post_meta( $postid, 'excerpt_lenght', true ); $excerpt_color = get_post_meta( $postid, 'excerpt_color', true ); $btn_readmore = get_post_meta( $postid, 'btn_readmore', true ); $excerpt_hcolor = get_post_meta( $postid, 'excerpt_hcolor', true ); $excerpt_fontsize = get_post_meta( $postid, 'excerpt_fontsize', true ); $bg_color = get_post_meta( $postid, 'bg_color', true ); $bg_hovercolor = get_post_meta( $postid, 'bg_hovercolor', true ); $border_color = get_post_meta( $postid, 'border_color', true ); $acrdscat = array(); $num = count($acrds_cat_name); for( $j=0; $j<$num; $j++ ) { array_push( $acrdscat, $acrds_cat_name[$j] ); } $args = array( 'post_type' => 'accordion-simply', 'post_status' => 'publish', 'posts_per_page' => -1, 'orderby' => $acrds_orderby, 'order' => $acrds_order, 'tax_query' => array( array( 'taxonomy' => 'acrdscat', 'field' => 'id', 'terms' => $acrdscat, ) ) ); $query = new WP_Query( $args ); $content=''; $content .=''; $content .='