• Hi,

    How to get text from specific until first table row end ?

    I use:

    <?php $recent = new WP_Query("page_id=14"); while($recent->have_posts()) : $recent->the_post();?>
    <h2><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
    <div class="entry_4">
    <?php
    $content = get_the_content();
    $content = strip_tags($content, '<br>,<b>,</b>');
    echo substr($content, 0, 200);
    echo "</br>";
    ?>
    <a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>" class="hrefas"> &raquo; <?php _e("Lue lis??"); ?></a>
    </div>
    <?php endwhile; ?>

  • The topic ‘Get page text until specific’ is closed to new replies.