WP-QR-Code-Tag issueshttps://git.netzspielplatz.de/micha/wp-qr-code-tag/-/issues2017-12-18T09:51:23Zhttps://git.netzspielplatz.de/micha/wp-qr-code-tag/-/issues/3Embedding in a Theme not working?2017-12-18T09:51:23ZMicha Gläß-StöckerEmbedding in a Theme not working?Hi
Great plugin and very customisable which puts it in my "must have" folder.
But .... I'm having an issue merging the code into my template.
I know there's an issue where it can't be in a page twice, but I use the widget only in my...Hi
Great plugin and very customisable which puts it in my "must have" folder.
But .... I'm having an issue merging the code into my template.
I know there's an issue where it can't be in a page twice, but I use the widget only in my "contact me" page (via widget logic), so there's no conflict there.
I'm using a conditional tag as I only want the QR to appear in blog entries and not in regular pages.
In the index.php I located (the_content) and confirmed the correct location by using random text after which correctly appeared at the bottom/end of every blog page.
I swapped the random text with the <img... code as mentioned in the plugin settings page, but it's not showing and I can't see why.
I tried variations on the PHP, but I can't get it working.
The code I used was
```php
<?php if (!is_page()) : ?>
<img src="<?php
global $qrcodetag;
echo $qrcodetag->getQrCodeUrl($content, $size, $encoding, $ecc, $margin, $version); ?>">
<?php endif; ?>
```
I also tried:
```php
<?php if (!is_page()) : ?>
<?php global $qrcodetag; ?>
<img src="<?php echo $qrcodetag->getQrCodeUrl($content, $size, $encoding, $ecc, $margin, $version); ?>" />
<?php endif; ?>
```
Neither worked.
Am I missing something obvious?
Ta
CallumW
http://wordpress.org/support/topic/plugin-qr-code-tag-embedding-in-a-theme-not-working