WordPress.org

Ready to get started?Download WordPress

Forums

Reusable Text Blocks
[resolved] Display Text Block Title (4 posts)

  1. tonylisanti
    Member
    Posted 9 months ago #

    Is it possible to display just the title of the text block?

    http://wordpress.org/extend/plugins/reusable-text-blocks/

  2. Hal Gatewood
    Member
    Plugin Author

    Posted 9 months ago #

    If you are familiar with PHP you can use this WordPress function:

    <?php echo get_the_title($ID); ?>

    Replace $ID with the number of the Text Block.

    Will this work?

  3. tonylisanti
    Member
    Posted 9 months ago #

    Yeah works for now. It would be nice if in the next release there was an option in the shortcode or php to pull in either the text block title or the text block content ie. <?php if(function_exists('show_text_block')) { echo show_text_block('1', 'title/content', true); } ?>

    Thanks for the reply and the plugin.

  4. Hal Gatewood
    Member
    Plugin Author

    Posted 9 months ago #

    Something to consider, however it would do the exact same thing as get_the_title() so I'm not sure it makes sense.

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.