Using a variable from the Rich Snippets module
-
I’d like to use the rating value from the Rich Snippets module in order to generate a CSS class name that would display the respective amount of stars on the page, e.g. so that when I pick a star rating of a page, it then gets written both in the meta tags and elsewhere, wherever I call that variable. Unfortunately, after spending 3 days trying to figure out how to create such variable within the file rich-snippets.php, I had to give up and beg for help here. Could you please enlighten me and tell me, the noob, how this can be done?
Thanks a lot in advance
P.S. The most logical solution seemed to be creating something like$rating = strval($this->get_postmeta("rich_snippet_review_rating"));
but unfortunately it didn’t work
- The topic ‘Using a variable from the Rich Snippets module’ is closed to new replies.