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

  1. narelly
    Posted 2 years ago #


    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.


  2. MikeCermak
    Posted 2 years 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
    Posted 2 years 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