Last active
September 14, 2019 19:42
-
-
Save specialosis/1da3a215759a15b7d80d26c773feb94f to your computer and use it in GitHub Desktop.
A custom post template
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?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(); | |
Author
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
While trying to add the QR shortcode below is the default and custom with url where it was used
default shortcode [lh_qr_code] : https://www.boundmix.com/web-software/wpforms-database-addon-wpforms-entries-wpformsdb-plugin/
Custom shortcode [lh_qr_code size=”100″ back_color=”0xE3170D″] : https://www.boundmix.com/music-lyrics/my-strange-addiction-lyrics-by-plot-twist/