Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author metaphorcreations

    (@metaphorcreations)

    You can use one of the built in filters to customize the block any way that you’d like in your theme. On line #353 there is:

    apply_filters( "mtphr_{$type}_post_block", $block, $excerpt, $args );

    So, for posts you’d add the following filter:

    function my_custom_block( $block, $excerpt, $args ) {
      return 'My modified block content';
    }
    add_filter( 'mtphr_post_post_block', 'my_custom_block', 10, 3 );

    Because the post is created by a query that is overriding the normal query you can use:
    the_id()
    the_title()
    the_permalink()

    etc…

    Plugin Author metaphorcreations

    (@metaphorcreations)

    Though, I do like your idea of using a template… I’ll think about implementing that as well in the future.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘templating output of post blocks (or any output from shortcode-gen.php)’ is closed to new replies.