WordPress.org

Forums

Display Posts Shortcode
[resolved] Display post content without title (3 posts)

  1. narelly
    Member
    Posted 1 year ago #

    Hi,

    I'm wondering if there is a way to display the content of a post on a page without the title. I tried this code:

    [display-posts id="1480" include_content="true"]

    It gives me the whole post with the title, but I only need the post content. Anyone has any idea? Thanks.

    http://wordpress.org/plugins/display-posts-shortcode/

  2. MikeCermak
    Member
    Posted 1 year ago #

    Go to Plugins, then click Edit next to Display Posts Shortcode. Near the bottom, look for:

    $title = '' . apply_filters( 'the_title', get_the_title() ) . '';

    Change it to:

    $title = "";

    (You could also hide it using CSS, in my case I didn't want it outputting at all.)

  3. narelly
    Member
    Posted 1 year ago #

    Thank you for your help Mike :)

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Display Posts Shortcode
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic