Integrating Expander_Maker in content
-
I’m trying to make a custom repeater template that calls the full content of each post, as each post in my current configuration will be using the expander_maker plugin to expand in place, rather than being loaded on a separate page. I’ve gotten the template to show the pieces I want, with the classes applied that I want. Unfortunately, I can’t seem to force the plugin to run the shortcode within the content as it loads – I’ve tried various iterations of do_shortcode and apply_filters but I think I’m just not getting the code right.
Here’s my template as it stands right now:
‘
<div class=’blog-meta’>
<span class=’small-preview'<?php if (! has_post_thumbnail() ) { echo ‘ class=”no-img”‘; } ?>>
<?php if ( has_post_thumbnail() ) { the_post_thumbnail(array(300,300));
}?></span>
</div>
<div class=’entry-content-wrapper clearfix’>
<header class=”entry-content-header”>
<h2 class=”post-title entry-title”>” title=”<?php the_title(); ?>”><?php the_title(); ?></h2>
<span class=”post-meta-infos”>
<time class=”date-container minor-meta updated”><?php the_time(“F d, Y”); ?></time>
<span class=”blog-categories minor-meta”> <?php the_category();?></span>
</header>
<div class=”entry-content”>
<?php $display = apply_filters(‘the_content’,get_the_content());
echo do_shortcode ($display); ?>
</div>
</div>
‘Site in progress is here: https://www.hlinc.com/news/
- The topic ‘Integrating Expander_Maker in content’ is closed to new replies.