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 8232011
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T17:41:15+00:00 2026-06-07T17:41:15+00:00

I am using a plugin that is generating my price value and pulling it

  • 0

I am using a plugin that is generating my price value and pulling it from an array:

<?php echo __('Price: ', 'event_espresso'); ?></span> <?php echo 
$org_options['currency_symbol'].$event->event_cost; ?>

I want to convert this generated value into my visitors own currency depending on the country their in with the plugin ‘Worldcurrency’

However you have to input a value in the short code like so:

[worldcurrency curr="EUR" value="25"]
in united states will show:
(~30$ USD)

Now I know how to use a shortcode in a template php file but I don’t know if its possible to insert my array value and currency symbol into this shortcode. Rather than using value="25" i need to use:

value="<?php echo $org_options['currency_symbol'].$event->event_cost; ?>"

Is this possible?

  • 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-07T17:41:18+00:00Added an answer on June 7, 2026 at 5:41 pm

    I’m not sure whether it’s possible to use PHP code inline in a shortcode – and I suspect not, however an easy enough way to implement this would be to write a shortcode of your own that then called the other shortcode.

    Your shortcode would generate the text you want (eg ‘[worldcurrency curr=”EUR” value=”25″]’), and call “do_shortcode($content)” which would then cause the other plugin to do the currency lookup for you.

    You could put this in a plugin file and it would probably amount to less than 15 lines of code.

    The other option is to modify the currency conversion plugin you are using to produce the output you want.

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

Sidebar

Related Questions

I'm generating Java classes from a WSDL using the jaxws-maven-plugin's wsimport goal. Out of
When running py.test using a plugin that loads xmlrpclib the test run fails with:
I'm using a jQuery plugin that has its functions defined as such: $('#mydiv').pluginAction({ someproperty:
I'm using macvim with the janus plugin that includes nerdtree with it. The issue
First I am using the jQuery colorbox plugin that is working fine so far
I am using VS2008 (C++) to create an IE plugin that creates a child
A while back I created a lightbox plugin using jQuery that would load a
I'm using masonry plugin in my website My problem is that the first 20
I am using plupload plugin to upload multiple files. That works fine. In Files
I'm using html2canvas plugin to generate snapshot of web pages. The problem is that

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.