Support

Account

Home Forums General Issues I want to create a “Read More” tag using Wysiwyg field on ACF

Solving

I want to create a “Read More” tag using Wysiwyg field on ACF

  • Hi guys,
    I am trying to add a “read more” tag on a template I created using the Advanced Custom Fields.
    Here’s the relevant code:

    <div class=”col-md-12 career-list-container <?php echo $terms_slugs_string; ?>”>
    <div class=”career-list”>
    <div class=”col-sm-6″>
    <h3 class=”title”><?php the_field(‘designation’); ?></h3>
    <p class=”exp”><?php the_field(‘min_experience’);?> – <?php the_field(‘max_experience’);?> Year |
    <?php the_field(‘location’); ?>

    </div>
    <div class=”col-sm-6 text-right”>
    “>/images/team-linkedin.svg”>
    <button class=”btn-career” data-toggle=”modal” data-target=”#myModal”>Apply For Position</button>
    </div>
    <div class=”col-sm-12″>
    <p class=”job-desc”><?php the_field(‘job_description’);?>

    </div>
    </div>
    </div>
    <div class=”clearfix”></div>
    <?php
    endwhile;
    wp_reset_postdata();

    endif;
    ?>
    <div class=”clearfix”></div>
    </div>
    </section>
    <script>
    $(‘p’).html(function($text) {
    return $text.replace(‘<!–more–>’, ‘read more‘ );
    });
    </script>

    I have tried EVERYTHING and spent hours scouring support forums to no avail. Please help, kind people.

  • I have tried this but, it didn’t work.
    Thanks for the solution anyway.

Viewing 3 posts - 1 through 3 (of 3 total)

The topic ‘I want to create a “Read More” tag using Wysiwyg field on ACF’ is closed to new replies.