• Hi,

    I’m currently separating the before and after <!–more–>, so I can use CSS on specific parts in text.
    However when a shortcode is added in content, this is just printed out and not “activated”.
    This is how my template looks like with printing the content.

    $the_content = get_extended($post->post_content);
    
    $main = $the_content['main'];
    $content = $the_content['extended'];
    
    <?php if (!empty($content)) : ?>
      <div class="main">
        <?php echo wpautop($main, true); ?>
      </div>
    <?php endif; ?>
      <div class="content">
      <?php if(!empty($content)){
        echo wpautop($content, true);
      } else {
        echo wpautop($main, true);} ?>
      </div>

    Any suggestions for how to overcome this?

    BR

  • The topic ‘Shortcodes not working with get_extended()’ is closed to new replies.