Skip to content

Instantly share code, notes, and snippets.

@specialosis
Last active September 14, 2019 19:42
Show Gist options
  • Select an option

  • Save specialosis/1da3a215759a15b7d80d26c773feb94f to your computer and use it in GitHub Desktop.

Select an option

Save specialosis/1da3a215759a15b7d80d26c773feb94f to your computer and use it in GitHub Desktop.
A custom post template
<?php
/**
* The template for displaying the single post
*
* @package boundmix build post page
* @since 1.0.0
* @version 2.5.0
* @var $helper Boombox_Single_Post_Template_Helper Template helper
*/
// Prevent direct script access.
if ( ! defined( 'ABSPATH' ) ) {
die( 'No direct script access allowed' );
}
/***** header */
get_header();
$helper = Boombox_Template::init( 'post' );
$options = $helper->get_options( 'boombox_image768' );
if
(function_exists('wise_chat')) { wise_chat(); }
/***** Featured strip */
if ( $options[ 'featured_strip' ] ) {
boombox_get_template_part( 'template-parts/featured', 'strip' );
}
/***** Ad: location - After Header */
boombox_the_advertisement( 'boombox-after-header', array(
'class' => 'container large bb-after-header',
) );
/***** Include chosen single template */
boombox_get_template_part( 'template-parts/single/layouts/' . $options['template'] );
http://api.qrserver.com/v1/create-qr-code/?size=150x150&data=url-or-text
/***** footer */
get_footer();
@specialosis
Copy link
Author

I wonder where to add this code;
the_post_qrcode()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment