• Resolved Maniraiser

    (@maniraiser)


    Hello, for me the plugin isn’t working. The connection to G2A is fine and also the creation of ref-links works. But when I insert the Shortcode on a post or page it is just a blank space. I inserted the ID shown in the Plugins “Links” section and it looks like this:

    [G2A id=”356″ display=”title”]
    [G2A id=”356″ display=”image”]
    [G2A id=”356″ display=”price”]
    [G2A id=”356″ display=”url”]

    Am I missing something?

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Konrad Chmielewski

    (@hwk-fr)

    Hello,

    Thank you for the report. In fact this is totally my fault, pushing a hotfix right now.

    Sorry for the inconvenience,

    Regards.

    Plugin Author Konrad Chmielewski

    (@hwk-fr)

    Please upgrade to the latest version: 0.7.1 for the hotfix ??

    Regards.

    Thread Starter Maniraiser

    (@maniraiser)

    Just updated but still not working for me ??

    Plugin Author Konrad Chmielewski

    (@hwk-fr)

    Hello,

    I tested again and everything just works fine here. Are you sure that the Link ID is actually the one in your “Links” Section?

    [G2A id="LINK ID HERE" display...]

    Here is my test:

    Album: https://imgur.com/a/eJGbZ

    Also, make sure the double quote is the correct one in the shortcode, as there is a difference between " and . Try to copy paste the shortcode example in the grey area, on the right side of the “Links” Tab of the plugin, and just replace the example ID with one of yours.

    For you, it would be something like this:

    [G2A id="356" display="title"]

    BTW, do you have any error.log or is it just blank space with no error?

    Regards.

    Thread Starter Maniraiser

    (@maniraiser)

    Whooooops! Okay yes seems like it was the ”
    sorry ^^
    Is it supposed to only show the image url instead of embedding the image?

    Plugin Author Konrad Chmielewski

    (@hwk-fr)

    Nice to hear ??

    Yes, I decided to output RAW image url as a first iteration to let users customize images size or CSS. If you want to create an image, you need to go in the “Text Mode” tab of your editor and manually create the image, like this:

    <img src="[G2A id='356' display='image']" />

    Note: See how I changed the double quote " into single quote ' in the shortcode, this is due to WordPress no being able to correctly escape multiple quotes (<img src="MORE DOUBLE QUOTE HERE" /> = error).

    My general advise is: use single quote with all your shortcodes so you’re sure it will always work.

    Here are some examples if you want to create advanced links + images:

    <a href="[G2A id='356' display='url']"><img src="[G2A id='356' display='image']" /></a>

    Now, a mega combo Link + Image + Title + Price + Button “order now!”:

    <a href="[G2A id='356' display='url']"><img src="[G2A id='356' display='image']" /></a> [G2A id='356' display='title'] at [G2A id='356' display='price']€! <a href="[G2A id='356' display='url']">Order Now!</a>

    I’ll update the plugin to enable an easiest way to embed games for beginners, with templates in the future, so stay tuned ??

    Thread Starter Maniraiser

    (@maniraiser)

    Works like charm!
    Thank you!

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Shortcodes not working’ is closed to new replies.