Site icon Hip-Hop Website Design and Development

Kind customized publish by customized area if none order by newest launch

I principally need my publish order first on upcoming releases and if there are non or no extra I need to organize them by newest releases. I’d additionally just like the upcoming e book releases to be ordered by nearest so far (the e book being launched tomorrow first publish and the e book being launched subsequent week the second publish and many others.) If there are not any extra upcoming releases I would love it to indicate the newest releases so e book 1 tomorrow’s launch, e book 2 subsequent weeks launch e book 3 final weeks launch). Proper now in my question, I get the upcoming releases however then no extra posts present up. The discharge date is coming from a customized area that’s inside a repeater area. Here’s what I obtained to date.

$arg_post = array(
                    'post_type' => 'bocker',
                    'posts_per_page' => 6,
                    
                    'meta_query' => array(
                        'relation' => 'OR',
                        'release_date' => array(
                            'meta_key' => 'editions_release_date',
                            'worth' => date('Y-m-d'),
                            'kind' => 'date',
                            'examine' => '>',
                            'order' => 'ASC'
                        ),
                        'all_post' => array(
                            'meta_key' => 'editions_release_date',
                            'worth' => date('Y-m-d'),
                            'kind' => 'date',
                        ),
                    )
                );
                    $bockerpost = new WP_Query($arg_post);