You could set a url parameter to change the display so that the URL could be the same, then have your QR code do a pass-through to the desired page. Without knowing how the QR codes are setup and such, I can’t offer much more on high-level implementation than that. The way to switch the templates would be as follows:
if( get_query_var( 'from_qr' ) == true )
get_template_part( 'qr', 'single' );
else
get_template_part( 'loop', 'single' );
You may want to use $_GET
instead of get_query_var()
, and you can structure that differently (I like get_template_part()
because it makes the code easier to read and enhances my focus on SoC), but that’s the general idea.
Related Posts:
- How to check if the product is in a certain category on a single-product.php in Woocommerce?
- Is it possible to use a single custom post as the site front page
- Listing a post’s categories and subcategories
- Single post comment template not working
- How do I show google ads between post content?
- Add inline style to get_the_category_list
- Help with figuring out the future post workaround
- Disable single view for specific post category
- I want to extend the current themes’ single.php to display the meta fields of my CPT
- Only nextpagelink on wp_link_pages
- Display a post map on a blank/new page
- How To Pass Current Post Type ID from Single Template To Custom Page Template
- Is it possible to create rel=”noindex, nofollow” for a single post if contain bad keywords?
- Custom seperate Single.php
- My single.php page does not show the related data to the post which is clicked
- Set a cookie only in single posts
- How to backup single post in wordpress [closed]
- Custom post type not respecting template hierarchy
- diffrent style for post single page
- WordPress object for comments frame [closed]
- I’m having a problem viewing the Youtube video
- Use different «Single.php» for custom categories
- force https except one page/post
- Single custom post type template not working (single-custom_post_template.php) not working
- How to use apply_filters?
- Single.php category entries not showing right colours
- Link from archive-page.php to single-page.php
- How to check if a post is in categories x,y,z inludint their subcategories
- Changing the display of the themename_posted_on() function
- How to Highlight current category on category and single page template?
- Exclude single page from function
- Dictionary-style definition list plugin
- get full real path of thumbnail post img wordpress
- how to loop through this in blog single?
- Modify post template on Divi Theme
- I want to signin from first wordpress site to other wordpress website without registration..without using network mode
- Try to showing product file size on product single page
- Improve related posts
- Content-single.php inside my plugin
- How to test a WordPress plugin on a single post?
- Get active term on single (CPT) page
- Style WordPress Custom Post Type Single Page
- Having single posts appear under the blog homepage and highlight menu items properly?
- Single.php loading fully on localhost but not on server
- explain why is_single doesn’t work
- How to view Plugin Manager in Notepad++
- Use Notepad++ as HEX-Editor
- How to view Plugin Manager in Notepad++
- Use Notepad++ as HEX-Editor
- Use Notepad++ as HEX-Editor
- What is the “Endurance Cache” feature in my WordPress website?
- I am getting error: Configuration ‘compile’ is obsolete and has been replaced with ‘implementation’. It will be removed at the end of 2018
- How to install a Notepad++ plugin offline?
- How can I get query string values in JavaScript?
- fix the error : Plugin with id ‘com.android.application’ not found
- How to: Install Plugin in Android Studio
- How to use the console within Sublime Text
- is there an autosave function/plugin for notepad++?
- Re-enable “component tree” in Android Studio
- “Gradle Version 2.10 is required.” Error
- WordPress asking for my FTP credentials to install plugins
- WordPress asking for my FTP credentials to install plugins
- how can i get a sign in/ Register plug in like fiverr.com’s on WordPress
- jetpack is in offline mode in wordpress. how to enable it and connect to our wordpress.com account
- Create Online template maker in wordpress website
- WordPress dFactory Cookie Notice Plugin
- Unable to manage Google AdSense with Adspro WordPress Plugin
- Automated Drip/ WorkFlow Form using a Plugin for WordPress site, or using a 3rd party
- How to extend WordPress Bookly plugin
- Speech recognition in WordPress based on Alexa Skill
- wordpress Simple Job board plugin hide cv attachment form
- W3 Total Cache WordPress plugin disturbing my page layout
- WordPress Error: There has been a critical error on your website. Please check your site admin email inbox for instructions
- How do i give a WordPress editor access to the Site Kit by Google plugin?
- WordPress plugin (Q&A Lite by WPMU Dev) not working once logged out from the WordPress admin account
- How to define custom capabilities in wordpress for custom plugin
- Recommendations for an address book/directory plugin WordPress?
- is there any plugin for auto taging with unicode support for wordpress?
- Why can’t import backup site WordPress? Plugin All-in-one migration
- Modern Events Calendar & WordPress: Advanced Speaker addon’s Speaker single page summary doesn’t recognize paragraph breaks
- WordPress PeepSo modification – display WP comments in activity stream
- function “add_submenu_page in wordpress connects to the home page instead of the submenu page
- Best collection of code for your 'functions.php' file [closed]
- Tips for using WordPress as a CMS? [closed]
- Adding a Taxonomy Filter to Admin List for a Custom Post Type?
- Updates for a private plugin?
- Uninstall, Activate, Deactivate a plugin: typical features & how-to
- Best way to initiate a class in a WP plugin?
- Which banner plugin is this? [closed]
- Upgrade 4.5.2 to 4.5.3 deleting row in wp_options table
- Woocommerce – adding variations to variations [closed]
- Best way to include wp-config.php
- similar of my posts in all over the internet sites and blogs [closed]
- Between functions.php (theme), widgets, and plugins, which is loaded first?
- Create custom page templates with plugins?
- WPSE Plugin Repository: The plugins that came out of WP-Answers
- Custom Post Type Templates from Plugin Folder?
- to perform the requested action wordpress needs to access your web server. please enter your ftp
- How to disable the single view for a custom post type?
- Disable update notification for individual plugins