Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1213055
    michele
    Participant

    HI,
    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
    Michele

    #1213082
    michele
    Participant
    This reply has been marked as private.
    #1213523
    Nabeel A
    Moderator

    Hi 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!

    #1214171
    michele
    Participant
    This reply has been marked as private.
    #1214407
    Rad
    Moderator

    Hi 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!

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