Jetpack – Mobile theme for use with Comic Easel
-
I am having a small issue with this wonderful plugin. I followed the instructions on https://frumph.net/ on installing Jetpack and enabling the mobile theme(https://askyeshuaonline.com). Everything seems to be OK except that for some odd reason, the current day’s comic is getting repeated when viewed from a mobile phone. Am I missing something?
P.S. The index.php was modifed as follows:
<?php if ( have_posts() ) : // Start the loop ?> <?php while ( have_posts() ) : the_post(); ?> <?php if (function_exists('ceo_display_comic')) echo ceo_display_comic(); ?> <?php get_template_part( 'content', get_post_format() ); ?> <?php endwhile; ?>
and added the following at the end of functions.php
add_filter('pre_get_posts', 'ceo_mobile_query_add_comics'); function ceo_mobile_query_add_comics($query) { if ( $query->is_home() && $query->is_main_query() ) { $query->set('post_type', array('post', 'comic')); } return $query; }
Greatly appreciate any help you can provide. Thanks in advance,
Brayo
Viewing 13 replies - 1 through 13 (of 13 total)
Viewing 13 replies - 1 through 13 (of 13 total)
- The topic ‘Jetpack – Mobile theme for use with Comic Easel’ is closed to new replies.