Raw Numbers Possible?
-
Hi,
Is there any way to get a raw output from the summary shortcodes or any other way?
(FYI, I’m trying to expand the schema fields for each individual page and am using custom fields not provided with your plugin. But to do that, I need the raw numbers instead of the number and including all of the divs and formatting.)
For example, if I want to create this part of the schema using your summary shortcode:
"aggregateRating": { "@type": "AggregateRating", "ratingValue": "5", ...
It instead, outputs this:
"aggregateRating": { "@type": "AggregateRating", "ratingValue": "<div class="glsr-shortcode shortcode-site-reviews-summary"><div class="glsr-summary-wrap"> <div class="glsr-summary glsr-default" id=""> <div class="glsr-summary-text"><span>5</span></div> </div> </div><glsr-shortcode hidden data-atts='{"assigned_to":"post_id","hide":"bars,rating,stars"}'></glsr-shortcode></div>", ...
Is there a way to get the raw number so the output is more like this without all of the formatting and everything else?
"aggregateRating": { "@type": "AggregateRating", "ratingValue": "5", ...
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- The topic ‘Raw Numbers Possible?’ is closed to new replies.