WordPress.org

Forums

Wp Custom CMS Block
[resolved] Using blocks in page templates (2 posts)

  1. anothergemma
    Member
    Posted 1 year ago #

    This looks like a great plugin for adding common blocks of content into a website.

    Is there a way I can add these blocks into the theme page templates rather than on individual pages? I'm not a php coder so I wouldn't know how to call the block. If this is possible the plugin would be perfect for what I need.

    Many thanks in advance.
    Gemma

    http://wordpress.org/extend/plugins/wp-custom-cms-block/

  2. digontoahsan
    Member
    Plugin Author

    Posted 1 year ago #

    You can use WordPress function do_shortcode.
    <?php echo do_shortcode('[block id="1"]');?>
    http://codex.wordpress.org/Function_Reference/do_shortcode

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Wp Custom CMS Block
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.