• Hi,

    I want to change order of date and post excerpt. I tryid to change order of su-post-meta and su-post-excerpt in this php-file, but nothing happened. What would be the correct way to get it done?

    <?php defined( ‘ABSPATH’ ) || exit; ?>

    <?php
    /**
    * READ BEFORE EDITING!
    *
    * Do not edit templates in the plugin folder, since all your changes will be
    * lost after the plugin update. Read the following article to learn how to
    * change this template or create a custom one:
    *
    * https://getshortcodes.com/docs/posts/#built-in-templates
    */
    ?>

    <div class=”su-posts su-posts-default-loop <?php echo esc_attr( $atts[‘class’] ); ?>”>

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

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

    <div id=”su-post-<?php the_ID(); ?>” class=”su-post <?php echo esc_attr( $atts[‘class_single’] ); ?>”>

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

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

    <div class=”su-post-meta”>
    <?php _e( ”, ‘shortcodes-ultimate’ ); ?> <?php the_time( get_option( ‘date_format’ ) ); ?>
    </div>

    <div class=”su-post-excerpt”>
    <?php the_excerpt(); ?>
    </div>

    <?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; ?>

    </div>

    <?php endwhile; ?>

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

    </div>

  • The topic ‘Su posts // move date before excerpt’ is closed to new replies.