Tagged: x
-
AuthorPosts
-
October 12, 2016 at 10:22 am #1213055
micheleParticipantHI,
I have been struggling with this all day trying to work out how to do it!
I have the ACF add on installed and also The Grid.
What I want to do is have a subtitle that would appear under the title of the posts that appear on the Grid.
So what I did was I created a field group called ‘subtitle’ in the ACF plug in.
I then added the code<p><?php the_field('about_author'); ?></p>into my wp-single.php in child theme:
<?php // ============================================================================= // VIEWS/INTEGRITY/WP-SINGLE.PHP // ----------------------------------------------------------------------------- // Single post output for Integrity. // ============================================================================= $fullwidth = get_post_meta( get_the_ID(), '_x_post_layout', true ); ?> <?php get_header(); ?> <p><?php the_field('subtitle'); ?></p> <div class="x-container max width offset"> <div class="<?php x_main_content_class(); ?>" role="main"> <?php while ( have_posts() ) : the_post(); ?> <?php x_get_view( 'integrity', 'content', get_post_format() ); ?> <?php x_get_view( 'global', '_comments-template' ); ?> <?php endwhile; ?> </div> <?php if ( $fullwidth != 'on' ) : ?> <?php get_sidebar(); ?> <?php endif; ?> </div> <?php get_footer(); ?>Then on my grid plug in, I tried to change the skin, and had hoped that the subtitle ability would appear in the dropdown when you are styling your skin. But it does not appear.
Are you able to give me any idea what I have done wrong.
Many thanks
MicheleOctober 12, 2016 at 10:34 am #1213082
micheleParticipantThis reply has been marked as private.October 12, 2016 at 3:19 pm #1213523
Nabeel AModeratorHi there,
Thank you for writing in! Can you also please provide the FTP credentials in a private reply so we can take a look?
Thanks!
October 13, 2016 at 1:16 am #1214171
micheleParticipantThis reply has been marked as private.October 13, 2016 at 5:12 am #1214407
RadModeratorHi there,
The Grid doesn’t use wp-single.php, it has its own skin builder (eg. its own template). I checked the skin builder and there is no option for ACF, but has option with metadata (eg. the usual custom field). Please check this http://theme-one.com/docs/the-grid/#!/skin_builder
Thanks!
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1213055 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
