[Resolved] Excerpt not shown (GP Premium + Elementor + Shortcode Ultimate)

Home Forums Support [Resolved] Excerpt not shown (GP Premium + Elementor + Shortcode Ultimate)

Home Forums Support Excerpt not shown (GP Premium + Elementor + Shortcode Ultimate)

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #1397006
    David

    Hello everybody!

    We are using GP Premium with Elementor and Shortcode Ultimate. I know its not the best combination but the website was built so. As you cann see on our old website, related articles shown with shortcode ultimate have a title, img, date and excerpt. After switching to the new website, the excerpt is gone. I know that someshow a function in the old themwas used (mh_excerpts). I really hope somebody can help with that as we tried everything.

    old: https://www.theme.verbraucherschutz.com/warnungsticker/edeka-fake-diese-e-mails-sind-spam-betrug-oder-eine-falle/

    new: https://www.verbraucherschutz.com/warnungsticker/edeka-fake-diese-e-mails-sind-spam-betrug-oder-eine-falle/

    Thank you so much!

    David

    #1397057
    David
    Staff
    Customer Support

    Hi there,

    just looking at the Shortcode Ultimate docs on Post loop:

    https://getshortcodes.com/docs/posts/

    It doesn’t look like it supports the excerpt – so was a custom loop shortcode created ?

    #1397075
    David

    Yes excatly…the code ist:

    <?php the_excerpt(); ?>

    Is there anything I need to add to the themes functions php?

    Thank you!

    full code:

    <?php if ( $posts->have_posts() ) : ?>

    <?php while ( $posts->have_posts() ) : $posts->the_post(); ?>

    ” class=”su-post”>

    <?php if ( has_post_thumbnail( get_the_ID() ) ) : ?>
    “><?php the_post_thumbnail(); ?>
    <?php endif; ?>

    <h2 class=”su-post-title”>“><?php the_title(); ?></h2>

    <?php the_excerpt(); ?>

    <?php if ( have_comments() || comments_open() ) : ?>
    ” class=”su-post-comments-link”><?php comments_number( __( ‘0 comments’, ‘shortcodes-ultimate’ ), __( ‘1 comment’, ‘shortcodes-ultimate’ ), ‘% comments’ ); ?>
    <?php endif; ?>

    <?php endwhile; ?>

    <?php else : ?>
    <h4><?php _e( ‘Posts not found’, ‘shortcodes-ultimate’ ); ?></h4>
    <?php endif; ?>

    #1397122
    David
    Staff
    Customer Support

    Try:

    <?php echo get_the_excerpt(); ?>

    #1397138
    David

    Thank you, we really appreciate your help.

    Unfortunately it does not work:

    We see […] in frontend but no excerpts

    #1397474
    Tom
    Lead Developer
    Lead Developer

    Hmm, that should work if content exists.

    You could try: <?php the_excerpt(); ?>

    If that doesn’t work, it means something is filtering the excerpt, causing it not to display. Could be a plugin or a custom function.

    #1399045
    David

    Thank you…still not working.

    With our last website we used MH Themes and there was a function in the customizer to determine the length of the excerpt and more. Is there an option with GP too?

    #1399200
    Tom
    Lead Developer
    Lead Developer

    There’s an option to choose the length of the excerpt in Customize > Layout > Blog – does that have a value?

    #1399382
    David

    Oh it does. Since it was set 0 there was no chance at all ๐Ÿ™‚

    Thank you!

    #1399609
    Tom
    Lead Developer
    Lead Developer

    No problem! ๐Ÿ™‚

Viewing 10 posts - 1 through 10 (of 10 total)
  • You must be logged in to reply to this topic.