feat(editorial): widen sections and add local track pages
Unify the editorial canvas across section pages, keep release tracks out of Journal, and give each song a listening surface with audio, metadata, platform links, sharing, and optional featured art. Document and seed the local The No Names fixture without changing production data.
This commit is contained in:
23 files changed
+770
-50
No files matched your search
@@ -124,6 +124,12 @@ function chrnx_get_eligible_editorial_post_ids( $extra_args = array() ) {
|
||||
'cache_results' => false,
|
||||
'suppress_filters' => false,
|
||||
'chrnx_require_nonempty_title' => true,
|
||||
'tax_query' => array(
|
||||
array(
|
||||
'taxonomy' => 'chrnx_release',
|
||||
'operator' => 'NOT EXISTS',
|
||||
),
|
||||
),
|
||||
),
|
||||
$extra_args,
|
||||
array( 'posts_per_page' => $limit )
|
||||
@@ -487,6 +493,13 @@ function chrnx_get_journal_query_args( array $request ): array {
|
||||
if ( ! empty( $tax_query ) ) {
|
||||
$args['tax_query'] = $tax_query;
|
||||
}
|
||||
$args['tax_query'][] = array(
|
||||
'taxonomy' => 'chrnx_release',
|
||||
'operator' => 'NOT EXISTS',
|
||||
);
|
||||
if ( 1 < count( $args['tax_query'] ) ) {
|
||||
$args['tax_query']['relation'] = 'AND';
|
||||
}
|
||||
|
||||
$search = chrnx_sanitize_journal_search( $request['s'] ?? '' );
|
||||
if ( '' !== $search ) {
|
||||
|
||||
Reference in new issue
Block a user