Home › Forums › Add-ons › Repeater Field › Repeater Field w/ WYSIWYG in RSS Feed › Reply To: Repeater Field w/ WYSIWYG in RSS Feed
Hi Joe,
You could try this to strip out all HTML tags. Might be good to do this for RSS:
<?php $steps = get_field(‘step’); ?>
<?php if($steps) { ?>
<p>Directions: </p>
<div>
<?php foreach($steps as $step) { ?>
<p><?php echo strip_tags($step[‘add_step’]); ?></p>
<?php } ?>
</div>
<?php } ?>
Here’s the documentation: http://php.net/manual/en/function.strip-tags.php
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.