Forums

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

  1. tcolling
    Member
    Posted 4 months 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 4 months 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 3 months 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 3 months ago #

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

Reply

You must log in to post.

About this Plugin

About this Topic

Tags