简体   繁体   中英

Executed shortcode nested inside another shortcode with PHP in Wordpress

I don't know if I'm anywhere close to getting this to work, but I've been working on it for 3 hours now and though I've made progress, it's not working completely. I'm not that versed in PHP, so this has been a battle. Basically what I'm trying to do is this:

I'm using the Formidable Pro to capture two numbers from a user about a goal. The ID of the beginning number is 104. The ID of the goal in the form is 107.

Then on a separate page I'm using the http://wordpress.org/extend/plugins/progress-bar/ plugin to measure progress on the goal.

I need to perform calculations on the beginning number and the goal number and have the result inputted into the progress-bar plugin.

I can't even get a number to show up in the progress bar, so I don't know what else to do.

This is what I have:

[wppb option=red percent=inside progress="<?php echo do_shortcode('[frm-stats id=\"107\"]'); ?>"]

I figured that if I could at least get a number to show up in the progress bar then I could figure out the calculation part of the code...

Any thoughts?

There is no way to nest shortcodes right now. Maybe in the future.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM