Currently, there are 0 users and 1 guest visiting this topic.
Author
Topic
#63888

i can see the star rating only on the single post page there is a way to add the rating to the post page too?
thanks
ori

Topic Information
General Question
5.5
5.4
3.1.2
https://conspiracy.co.il
Viewing 16 replies - 1 through 16 (of 16 total)
Author
Replies
  • #63889

    The plugin has shortcodes and functions to do that. There is no universal way for a plugin to do it automatically because WordPress doesn’t implement required filters or actions outside of single posts to achieve that.

    Dev4Press - Premium plugins for WordPress.

  • #63890

    shortcodes and functions to do that? can you point how can i make it happen ?
    thanks again
    ori

  • #63891

    Here is basic info about rating PHP functions: https://support.dev4press.com/kb/article/manually-add-rating-block-with-php/, and there are many more in the knowledge base with information about functions. Plugin also includes shortcodes builder so you can generate shortcodes and use them too.

    Dev4Press - Premium plugins for WordPress.

  • #63892

    thanks
    1. i don’t know any php so good so there is a way to get the right syntax for star rating for all my post?

    2. what file i should add it to get the post page or main page display the rating star?

    thanks again
    ori

  • #63893

    Hi,

    This depends on the theme, where you want to include it, there is no universal solution for this. For any use of PHP functions or code, you need some knowledge of PHP, there is no other way. Code has to go inside the WordPress loop, and there are examples in the article I linked that are made for loop.

    Milan

    Dev4Press - Premium plugins for WordPress.

  • #63895

    thanks
    1. i manage to do that but i can’t see the starts on mobile i mean i see the text that said no vote yet but the stars are not there ๐Ÿ™
    2. how can i translate the plugin where is the lang files are ?
    thanks again
    ori

  • #63896

    sorry about that but update about number 1
    it’s seems that the starts icons are gone only when the user are not login!
    thanks again
    ori

  • #63898

    Without seeing the page with the problem, I have no idea why the stars are not displayed. Include the link where the plugin is used, and I will check it out. Free plugin is translated through WordPress.org: https://translate.wordpress.org/projects/wp-plugins/gd-rating-system/. But, if you want to use your own translation without going through WP.org, check this out: https://support.dev4press.com/kb/faq/where-should-i-install-plugin-translations/.

    Dev4Press - Premium plugins for WordPress.

  • #63899

    there is a link:
    www.conspiracy.co.il
    and i add a photo of the problem thanks ๐Ÿ™‚

    ori

  • #63900

    sorry the file didn’t enter the post

    Attachments:
  • #63902

    The problem is the JSON settings added with each rating block are broken. Since my plugin uses PHP json_encode function, you either have some server setup issue to cause the problem (very unlikely), or the problem is caused later by some other plugin (maybe the plugin that is used to optimize JS/CSS, and HTML content). Problem with the JSON is values for boolean ‘true’ and ‘false’, and they are not encoded as ‘true’ and ‘false’, and instead, they are ‘!1’ and ‘!0’. Try running the website without the cache plugin (I think you are using EZCache) to see if it works.

    Dev4Press - Premium plugins for WordPress.

  • #63903

    yep this was the problem. there is a way to exclude only the file make the problem and keep the EZCache working i mean i must keep my website work fast you know
    thanks again
    ori

  • #63904

    Problem is not with a JS file from my plugin, problem is with the embedded JSON added into page content. I am not sure what EZCache does, but it breaks HTML during minimization. I use WPRocket plugin, and it minimizes HTML without breaking it.

    Dev4Press - Premium plugins for WordPress.

  • #63905

    ohh ok got you thanks i’ll see what i can do to solve it with this plugin if not i’ll change thanks ๐Ÿ™‚

  • #63951

    hey buddy so i now use wp rocket but i’m not manage to render this file
    /wp-content/plugins/gd-rating-system/css/fonts/default/gdrts-icons.woff?401.1260
    any idea what i’m doing wrong?
    thanks
    ori

  • #63954

    What do you mean ‘render this file’? This is font with icons loaded via CSS file. I use WPRocket, and there are no issues with rating plugin.

    Dev4Press - Premium plugins for WordPress.

Viewing 16 replies - 1 through 16 (of 16 total)
  • You must be logged in to reply to this topic.
Register

If you don't have an account on this website, you can register for a free account here:

Register