WordPress.org

Forums

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

  1. tonylisanti
    Member
    Posted 1 year 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 1 year 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 1 year 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 1 year ago #

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

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Reusable Text Blocks
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.