Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9022985
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T05:39:09+00:00 2026-06-16T05:39:09+00:00

Well what I am trying to do is add a barcode to my wordpress

  • 0

Well what I am trying to do is add a barcode to my wordpress sidebar. The plugin used to generate the barcode is called Yeblon

Yeblon Plugin Page

the shortcode used by the plugin is

[yeblonqrcode size="100" url="" class="" style=""]

were url is the place were the generated barcode leads to

The url I want to generate is inserted from the custom fields. I use a plugin called Advanced Custom Fields.

Advanced Custom Fields Plugin Page

the code that displays the link is

<?php the_field("download_(android)" , $post->ID); ?>

So my final code is

        <div id="mobile-barcodes-tabs">
        <?php $post = $wp_query->post; ?>
        <?php
        if(get_field('download_(android)')){ ?>
            <?php echo do_shortcode('[yeblonqrcode size="100" url="the_field("download_(android)" , $post->ID);" class="" style=""] ');?>
        <?php }
        ?>
    </div>

But it is not working I don’t know what is the problem I will be glad if you helped me thanks in advance

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T05:39:10+00:00Added an answer on June 16, 2026 at 5:39 am

    Build the PHP values beforehand and use string concatenation:

    <div id="mobile-barcodes-tabs">
        <?php 
        $post = $wp_query->post;   
        $the_url = get_field( 'download_(android)' , $post->ID );   
        if( $the_url ) {            
            echo do_shortcode( '[yeblonqrcode size="100" url="' . $the_url . '" class="" style=""]' );
         }
        ?>
    </div>
    

    PS: You probably noticed that I removed all those unnecessary opening and closing PHP tags.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to add the hoverIntent plugin to elements on my page, however some
I am trying to add edge labels for a graph. It all works well,
well iam trying to get version of IE used by user by using $.browser.version
I am currently trying to add a web part to a page. All i
I have a query that works really well. But I am trying to add
I am trying to add my own functionality to a jQuery plugin and to
I have a ScrollPane, and I am trying to add Movieclips to it. Well
I am trying to add a JPanel (well, several) to a JLayeredPane. However, when
I'm building a table and trying to add some CSS as well as some
im using a django app (django adzone), well, but im trying to add banners,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.