I have a progress bar widget, on that widget there are 2 dynamic fields,
1. Percentage field: this can be characters and numbers
2. Value field: numbers
My problem is that, when I use dynamic shortcode to pull the data from my Progress Bar (numeric) custom field to show up on Percentage field, it does show. But when i use the same shortcode to pull the data from Progress Bar custom field to show up on Value field, it does nothing.
I use shortcode because, the Progress Bar custom field is in the other custom post type.
Using Toolset field - progress bar custom field, doesn't show anything.
I did reach out support from the progress bar widget team. Below is his reply.
Try this:
- Create a copy of this View
- In the copy, check "Disable the wrapping Div"
- Remove all spaces, line breaks, and HTML markup from the Loop Editor
- If your View uses a Content Template, remove all spaces, line breaks and HTML markup from that template
This should produce basic output without extra HTML markup.
- Remove all spaces, line breaks, and HTML markup from the Loop Editor
I still see spaces and line breaks in the Loop Editor, so you haven't quite finished this part yet. Everything in the Loop Editor should be on one long continuous line, with no breaks or tabs or spaces between the shortcodes and tags. Also be sure to delete any space after wpv-layout-end, because there is an empty line there now.
Also, I would probably delete the wpv-post-body shortcode from the loop and replace it with the progress bar shortcode. The Content Template here only holds one shortcode so it's not really useful. If you want the raw value (number) you should use the raw output option in the field shortcode, so it would look like this after removing line breaks and spaces from the loop:
from section A: I followed what you ask me to do.
By using this approach, only the Percentage field is working fine but the Value field is not.
(**custom Post Type child - Projects Updates)
from section B: I create a new custom field inside my parent custom Post Type (Projects), create a new View and follow the same instructions as you mentions on your previous reply. The only difference from this section B to section A is that, No Query filter settings for section B.
By using this approach, only the Percentage field is working fine but the Value field is not.
from section C: I create a new custom field inside my parent custom Post Type (Projects), instead of using dynamic shortcode, I use toolset field. Both Percentage and the Value field are working fine.
*As much as possible, i don't want to put the progress bar field to my parent post type (Projects) it should be on Projects Updates as it needs to update regularly, that's why im not using the Section C for this.
May I log in and take a look in wp-admin? I would like to see more details. If not, please provide a Duplicator copy so I can perform some tests locally.
I believe the problem here is that the module isn't able to process the view shortcode to get the value.
I would recommend opening a ticket with the elementor team as they are better able to advise you on this one. Our shortcode is providing the content as it requires it.