Need Help for Global Block shortcode

Hi I created global block shortcode,

and then

1] Using Notepad, I create a new file in my local machine.
2] Inserted the following code into that new file :–

<?php // ============================================================================= // VIEWS/RENEW/WP-SINGLE.PHP // ----------------------------------------------------------------------------- // Single post output for Renew. // ============================================================================= $fullwidth = get_post_meta( get_the_ID(), '_x_post_layout', true ); get_header(); ?>
  <?php while ( have_posts() ) : the_post(); ?>
    <?php x_get_view( 'renew', 'content', get_post_format() ); ?>

    <?php // ----------------------------------------------------------------------------- ?>
    <?php // Add your global block shortcode

    <?php echo do_shortcode('[cs_gb id=1162]'); ?>

    <?php // ----------------------------------------------------------------------------- ?>

    <?php x_get_view( 'global', '_comments-template' ); ?>
  <?php endwhile; ?>

</div>

<?php if ( $fullwidth != 'on' ) : ?>
  <?php get_sidebar(); ?>
<?php endif; ?>
<?php get_footer(); ?>

3] Saved the file named as wp-single.php
4] Uploaded this file to my server in the child theme’s folder wp-content/themes/x-child/framework/views/renew/

to get this result like I have done in my another version of blog >>

But after doing all these efforts, my page stopped opening. It is showing blank.

Hey I sorted out! Thanks

Glad you’ve sorted it out :slight_smile:

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.