Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Coding Panda

    (@codingpanda)

    @juusui Thanks for using the plugin. Have you tried applying the “the_content” filter? For example:

    echo apply_filters( 'the_content', pods_field( 'repeater_pod_name', item_id, 'repeater_pod_field_name') );

    Thread Starter juusui

    (@juusui)

    Thanks for the quick response. I did not try applying filters and don’t know how to do that in the way I’ve implemented the repeated field on the front end.

    <?php $array = pods_field('glossary_blocks');
    	foreach($array as $item) { ?>
    		<div class="row">
    			<div class="druva-glossary-block-title">
    				<h2 class="druva-glossary-definition-title"><?php echo $item['glossary_block_title']; ?></h2>
    			</div>
    			<div class="druva-glossary-block-content"><?php echo $item['glossary_block_text']; ?></div>
    		</div>
    <?php } ?>

    Is there a better way to implement this that would also allow for applying the filter mentioned?

    • This reply was modified 3 years, 11 months ago by juusui.
    Plugin Author Coding Panda

    (@codingpanda)

    @juusui I presume that glossary_block_text is from the repeater field. You could try replacing $item['glossary_block_text'] with
    apply_filters( 'the_content', $item['glossary_block_text'] )

    Thread Starter juusui

    (@juusui)

    PERFECT! That worked. Thanks.

    Plugin Author Coding Panda

    (@codingpanda)

    ?? No problem. I’m glad I could help.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘tags not added to wysiwyg content’ is closed to new replies.