Forums

How to use get_post and "more" ?? (3 posts)

  1. unknownclubber
    Member
    Posted 2 years ago #

    Hi Bloggers !

    I'm using the get_post function and i want to display the content before the "more" tag ... do you know how to do ?
    Or how to display the content in HTML rather than a simple string ?

    Thanks in advance

    A WP-addict

  2. reynevan
    Member
    Posted 2 years ago #

    Hi,
    I had same problem and couldn't find solution with get_post.
    I achieved goal with WP_Query:

    $my_query = new WP_Query('page_id=69);
      global $more;
      while ($my_query->have_posts()) : $my_query->the_post();
        $more = 0;
        the_title();
        the_content();
      endwhile;

    Seems very heavy but it works.

  3. Shane G.
    Member
    Posted 2 years ago #

Topic Closed

This topic has been closed to new replies.

About this Topic