• PeteS_UK

    (@petes_uk)


    Hi,

    I know in the mobile configuration that you can choose to show excerpts on category pages. However, these excerpts seem to be from the opening lines of the post rather than the manual excerpt the_excerpt(); .

    Is it possible to pull in the manual excerpt without amending the minileven theme code which gets overwritten by jetpack updates?

    Thanks for your assistance

    Pete

    https://wordpress.org/plugins/jetpack/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Jeremy Herve

    (@jeherve)

    Jetpack Mechanic 🚀

    Thanks for the report!

    This automated excerpt was introduced in this commit to address a multibyte truncation issue, as reported here:
    https://wordpress.org/support/topic/mobile-theme-read-the-rest-of-the-story-disappearing-at-times-1?replies=6&view=all

    Unfortunately, we haven’t found a way to fix the bug while still allowing you to use custom excerpts. We’re aware of the problem though, and you can follow our progress on this here:
    https://github.com/Automattic/jetpack/issues/2975

    I’ll post again here as soon as I have some news about this.

    Thread Starter PeteS_UK

    (@petes_uk)

    Thanks Jeremy,

    As an alternative (compromise) to the fix I would be happy to see an option on the configuration option to choose between automatic and manual excerpts.

    Does that make it easier?

    Pete

    Plugin Author Jeremy Herve

    (@jeherve)

    Jetpack Mechanic 🚀

    Unfortunately not. We’ll need to find a different way to solve the multibyte truncation issue to solve this issue.

    Thread Starter PeteS_UK

    (@petes_uk)

    Hi Jeremy,

    Is there likely to be any progress on resolving this anytime soon?

    Going live shortly and currently have amended the plugin code in content.php to pull in the manual excerpt the_excerpt(); instead of minileven_excerpt;

    <div class="entry-content">
    <?php if ( '1' == get_option( 'wp_mobile_excerpt' ) && ( is_home() || is_search() || is_archive() ) ) : ?>
    	<?php the_excerpt(); ?>
    <!--	<?php echo minileven_excerpt( 300 ); ?> -->

    which is not ideal as will need reapplying after each update

    Thanks
    Pete

    Plugin Author Jeremy Herve

    (@jeherve)

    Jetpack Mechanic 🚀

    You can follow our progress on this here:
    https://github.com/Automattic/jetpack/issues/2975

    We unfortunately can’t just switch to using the_excerpt(), as it would reintroduce another bug we fixed earlier, as I mentioned earlier. We’ll need to find another solution, but we haven’t looked at that problem yet, and I don’t have an ETA.

    If you have any suggestions as to how we could solve the issue, do not hesitate to comment here or on the GitHub issue!

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Use manual excerpt in mobile theme?’ is closed to new replies.