Issue

CURRENT ISSUE

‘issue’, ‘meta_key’ => ‘_pubDate’, ‘orderby’ => ‘meta_value’, ‘order’ => ‘DESC’, ‘meta_query’ => [[ ‘key’ => ‘_pubDate’, ‘value’ =>get_post_meta(get_the_ID(), ‘_pubDate’, true), ‘compare’ => ‘<', 'type' => ‘DATETIME’, ] ], ‘posts_per_page’ => 1, ]; $query_prev_article = new WP_Query($args); if($query_prev_article->have_posts()){ $query_prev_article->the_post(); $post_id = $post_id_prev_article = get_the_ID(); $query_prev_article_meta=get_post_meta($id); ?>
Function/Left-01
VOLUME
‘issue’, ‘meta_key’ => ‘_pubDate’, ‘orderby’ => ‘meta_value’, ‘order’ => ‘ASC’, ‘meta_query’ => [[ ‘key’ => ‘_pubDate’, ‘value’ =>get_post_meta(get_the_ID(), ‘_pubDate’, true), ‘compare’ => ‘>’, ‘type’ => ‘DATETIME’, ] ], ‘posts_per_page’ => 1, ]; $query_next_article = new WP_Query($args); if($query_next_article->have_posts()){ $query_next_article->the_post(); $post_id = $post_id_next_article = get_the_ID(); $query_next_article_meta=get_post_meta($id); ?>
Function/Right-01
get_results($wpdb->prepare(” SELECT {$wpdb->prefix}posts.ID, {$wpdb->prefix}p2p.p2p_id FROM {$wpdb->prefix}p2p, {$wpdb->prefix}posts WHERE p2p_to = %d AND p2p_type = %s AND {$wpdb->prefix}posts.ID = p2p_from ORDER by p2p_id “, get_the_ID(), “article_to_issue”)); $article_ids[0] = array_map(fn($item) => $item->ID, $c); $article_ids[1] = array_map(fn($item) => $item->p2p_id, $c); if(count($article_ids[0]) > 0): $args = [ ‘post_type’=>’article’, ‘post_status’ => ‘publish’, ‘posts_per_page’ => -1, ‘orderby’ => ‘meta_value_num’, ‘meta_key’ => ‘_fpage’, ‘order’ => ‘ASC’, ‘post__in’ => $article_ids[0], ]; $query_articles = new WP_Query($args); $query_articles = $query_articles->posts; $post_index_articles = 0; foreach ($query_articles as $item_articles){ $post_id_articles = $item_articles->ID; $query_articles_meta=get_post_meta($post_id_articles); ?>
name;?>
get_results($wpdb->prepare(” SELECT {$wpdb->prefix}posts.ID, {$wpdb->prefix}p2p.p2p_id FROM {$wpdb->prefix}p2p, {$wpdb->prefix}posts WHERE p2p_from = %d AND p2p_type = %s AND {$wpdb->prefix}posts.ID = p2p_to ORDER by p2p_id “, $post_id_articles, “article_to_contributor”)); $author_ids[0] = array_map(fn($item) => $item->ID, $c); $author_ids[1] = array_map(fn($item) => $item->p2p_id, $c); if(count($author_ids[0]) > 0): $args = [ ‘post__in’ => $author_ids[0], ‘post_type’=>’contributor’, ‘post_status’ => ‘publish’, ]; $query_authors = new WP_Query($args); $query_authors = $query_authors->posts; $post_index_authors = 0; foreach ($query_authors as $item_authors){ $post_id_authors = $item_authors->ID; $query_authors_meta=get_post_meta($post_id_authors); ?> and  2){ ?>

and others