Support » Fixing WordPress » Excerpt issue with post type

  • Hi There

    I was hoping someone could help me out with a get post id and excerpt issue I am having for this page template page.

    In the list you will see that I have one speaker listed below the main body content and the excerpt text being displayed is pulling the content from the page title & content, when if should be pulling the text from the post type.

    This is the code I am using to pull the article information.

    <article>
    <div class=”row”>
    <div class=”six mobile-two columns”>
    <?php echo ‘ID).'”><h4 class=”speaker-name”>’.get_the_title($post_object->ID).'</h4>‘ ?>
    <span class=”speaker-title”><?php the_field(‘speaker_title’, $post_object->ID); ?></span>
    <div class=”excerpt hide-for-small”><?php
    global $detect;
    if ($detect->isTablet()) {
    echo ‘<p>’.limit_excerpt(‘150′).'</p>’;
    } else {
    echo ‘<p>’.limit_excerpt(‘250′).'</p>’;
    }
    ?>
    </div>

    Can anyone make some suggestions to help with this fix.

    Thank you very much

  • The topic ‘Excerpt issue with post type’ is closed to new replies.