WordPress.org

Ready to get started?Download WordPress

Forums

Display Posts Shortcode
[resolved] How to supress the Title? (6 posts)

  1. tcolling
    Member
    Posted 1 year ago #

    Hi -

    I have some posts that I use as "include files" and sometimes I want their titled to be displayed, while in other places I want their titles to NOT be displayed. Is there a way to supress the title from printing with an argument I can pass to display-posts? I tried using this but it didn't have any effect:

    include_title="false"

    Thanks,
    Tim

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

  2. Bill Erickson
    Member
    Plugin Author

    Posted 1 year ago #

    Right now the only way to do that would be with an output filter. I might add the feature to the plugin itself if others need it, but I think your use case is an outlier (you're the first person to request hiding titles).

    Add this to your theme's functions.php file (without the <?php at the top): https://gist.github.com/4511408

  3. jasontucker
    Member
    Posted 1 year ago #

    I've been working with your plugin this week on a project and found that being able to remove the titles would be quite helpful.

  4. kphunter
    Member
    Posted 1 year ago #

    Great plugin - thanks. I would also like to see this built-in...

  5. Scotm
    Member
    Posted 10 months ago #

    I've tried this solution but can't get it to suppress titles. I'd like to see this feature as well.

  6. renatoslima
    Member
    Posted 9 months ago #

    Hi Bill,

    here (http://wordpress.org/support/topic/hide-title-of-post-within-speciifc-page?replies=2) you have the same demmand too.

    Best regards.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags