• Hi there, quick question.

    I need to split the wp_block_cover image from the main content. Anyone has a solution for this?

    This is what I have now:

    <?php if ( have_posts() ) : while ( have_posts() ) : the_post();?>
    
         <?php the_content(); ?>
    
    <?php endwhile; endif?>

    But basically, it would need to go a bit into this direction:

    <?php if ( have_posts() ) : while ( have_posts() ) : the_post();?>
    
        <?php wp_block_cover(); ?>
         
        <?php remaining_content(); ?>
    
    <?php endwhile; endif?>

    Thank you guys and take care.

Viewing 1 replies (of 1 total)
  • Moderator bcworkz

    (@bcworkz)

    The cover block is already in it’s own container within general content, so it already is separate in a sense, albeit within the_content(). I suppose you could implement it as a widget area or custom field and have your template output it separately.

    I’m not sure I see the point. What do you hope to accomplish with this? Maybe there’s a better solution if I understood your goal better.

Viewing 1 replies (of 1 total)
  • The topic ‘How split ‘wp_block_cover’ from ‘the_content’ ?’ is closed to new replies.