Tagged: x
-
AuthorPosts
-
July 6, 2016 at 3:11 pm #1075322
LelyModeratorHi 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.July 7, 2016 at 8:17 am #1076411
GrangeLifeParticipantThis reply has been marked as private.July 7, 2016 at 7:36 pm #1077143
Rue NelModeratorHello 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.
July 9, 2016 at 5:46 am #1079169
GrangeLifeParticipantHi 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.
July 9, 2016 at 6:07 am #1079183
RadModeratorHi 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!
July 10, 2016 at 6:21 am #1080077
GrangeLifeParticipantHi Rad,
Thank you for the info!
July 10, 2016 at 6:37 am #1080085
ChristopherModeratorYou’re welcome.
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1070246 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
