mirror of
https://github.com/Frumph/comic-easel.git
synced 2026-07-21 00:35:30 -04:00
[GH-ISSUE #31] navigation code update reminder #25
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Frumph on GitHub (Apr 6, 2019).
Original GitHub issue: https://github.com/Frumph/comic-easel/issues/31
$chapter_on_home = ''; $chapter_on_home = get_term_by( 'id', ceo_pluginfo('chapter_on_home'), 'chapters'); $chapter_on_home = (!is_wp_error($chapter_on_home) && !empty($chapter_on_home)) ? $chapter_on_home->slug : ''; $order = (ceo_pluginfo('display_first_comic_on_home_page')) ? 'asc' : 'desc'; $comic_args = array( 'showposts' => 1, 'posts_per_page' => 1, 'post_type' => 'comic', 'order' => $order, 'chapters' => $chapter_on_home ); $comicFrontpage = new WP_Query(); $comicFrontpage->query($comic_args); while ($comicFrontpage->have_posts()) : $comicFrontpage->the_post();needs to replace whatever is there so that a single chapter can appear on home
@Frumph commented on GitHub (Apr 6, 2019):
frick the code display not working but find the main code in the injections.php and put it in the navigation.php