Forums

How do I query post without content (3 posts)

  1. baokychen
    Member
    Posted 3 years ago #

    I have this line on my post , with php enabled.

    query_posts(array('showposts' => 10, 'what_to_show' => 'posts', 'nopaging' => 0, 'post_status' => 'publish', 'caller_get_posts' => 1)); ?>

    it return me the result i want , however , it show the post content and stuffs.

    I just want grab the post title with hyperlink by its permalink, i does not want to show any of the content .

    Output should be like..

    Post A
    Post B
    Post C

    without any content , just the title and its permalink

  2. MichaelH
    Volunteer
    Posted 3 years ago #

    You don't show us your whole Template code, but delete the template tag, the_content().

  3. baokychen
    Member
    Posted 3 years ago #

    i deleted the_content() , but the post content is still query out.

    My situation is to use recent post widget arrange by sticky post first then normal post.

    Next is , it is to be place in a post instead of the widget column.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.