Account for deleted chapter posts in shortcodes
This commit is contained in:
parent
66aa6f2763
commit
f57db0676c
@ -212,6 +212,10 @@ if ( $splide ) {
|
||||
foreach ( $search_list as $chapter_id ) {
|
||||
$chapter_post = get_post( $chapter_id );
|
||||
|
||||
if ( ! $chapter_post ) {
|
||||
continue;
|
||||
}
|
||||
|
||||
if ( get_post_meta( $chapter_id, 'fictioneer_chapter_hidden', true ) ) {
|
||||
continue;
|
||||
}
|
||||
|
@ -254,6 +254,10 @@ if ( $splide ) {
|
||||
foreach ( $search_list as $chapter_id ) {
|
||||
$chapter_post = get_post( $chapter_id );
|
||||
|
||||
if ( ! $chapter_post ) {
|
||||
continue;
|
||||
}
|
||||
|
||||
if ( ! $chapter_post || get_post_meta( $chapter_id, 'fictioneer_chapter_hidden', true ) ) {
|
||||
continue;
|
||||
}
|
||||
|
@ -245,6 +245,10 @@ if ( $splide ) {
|
||||
foreach ( $search_list as $chapter_id ) {
|
||||
$chapter_post = get_post( $chapter_id );
|
||||
|
||||
if ( ! $chapter_post ) {
|
||||
continue;
|
||||
}
|
||||
|
||||
if ( get_post_meta( $chapter_id, 'fictioneer_chapter_hidden', true ) ) {
|
||||
continue;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user