[GH-ISSUE #31] navigation code update reminder #25

Open
opened 2026-06-06 22:29:08 -04:00 by yindo · 1 comment
Owner

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

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
Author
Owner

@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

<!-- gh-comment-id:480546564 --> @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
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Frumph/comic-easel#25