Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1075322
    Lely
    Moderator

    Hi There,

    I tried to switch from child theme to main X theme and News page shows other post.

    This means that there’s a problem on the child theme. Unfortunately, I still can’t login to your hosting via FTP. Please lift the lock for more than 4 hours.

    #1076411
    GrangeLife
    Participant
    This reply has been marked as private.
    #1077143
    Rue Nel
    Moderator

    Hello There,

    Thanks for the updates! It appears that there is an error in your code in the _content-image.php file.

    The correct code should be this:

    <?php
    
    // =============================================================================
    // VIEWS/INTEGRITY/CONTENT-IMAGE.PHP
    // -----------------------------------------------------------------------------
    // Image post output for Integrity.
    // =============================================================================
    
    ?>
    
    <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
      <div class="entry-featured">
        <?php x_featured_image(); ?>
      </div>
      <div class="entry-wrap">
        <?php if ( is_single() ) : ?>
        <header class="entry-header">
          <h1 class="entry-title"><?php the_title(); ?></h1>
          <?php x_integrity_entry_meta(); ?>
        </header>
        <?php x_get_view( 'global', '_content', 'the-content' ); ?>
        <?php else : ?>
        <header class="entry-header center-text">
          <h2 class="entry-title">
            <a href="<?php the_permalink(); ?>" title="<?php echo esc_attr( sprintf( __( 'Permalink to: "%s"', '__x__' ), the_title_attribute( 'echo=0' ) ) ); ?>"><?php x_the_alternate_title(); ?></a>
          </h2>
          <?php x_integrity_entry_meta(); ?>
        </header>
          <?php x_get_view( 'global', '_content', 'the-excerpt' ); ?>
            <?php endif; ?>
      </div>
      <?php x_get_view( 'integrity', '_content', 'post-footer' ); ?>
    </article>

    Hope this helps.

    #1079169
    GrangeLife
    Participant

    Hi Rue Nel,

    Thank you. I see you have fixed it and I’m very grateful.

    For my information (and learning) can you explain how the error may have occurred? Was it an error in the child theme which I would never have found or was it an error in something I did? Any information you can provide will aid my getting to grips with X Theme.

    Thank you again.

    #1079183
    Rad
    Moderator

    Hi there,

    It was coded as _get_view() on your child theme’s template. It’s missing an x, which should be x_get_view()

    Cheers!

    #1080077
    GrangeLife
    Participant

    Hi Rad,

    Thank you for the info!

    #1080085
    Christopher
    Moderator

    You’re welcome.

  • <script> jQuery(function($){ $("#no-reply-1070246 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>