Notifications
Clear all

Theme Stockholm and plugin wpdiscuz  

  RSS

janinex
(@janinex)
Active Member
Joined: 4 months ago
Posts: 12
10/02/2020 1:38 pm  

Hey,

i work with the Theme Stockholm and the plugin wpdiscuz. I would like to display the rating stars in the overview of the products. Can you explain how to?

This is the link auf the Site:

https://www.finifuchs.de/hilfsmittel/stehen/

Thank you very much.


Quote
Elvina
(@elvina)
Prominent Member Moderator
Joined: 7 months ago
Posts: 757
12/02/2020 11:50 am  

Hi @janinex,

Sorry for the late response.

You should use the [wpdrating] shortcode in post content to display rating stars.

You should manipulate with the shortcode to get what you want.

More info here: https://gvectors.com/forum/important-information-and-announcements/wpdiscuz-4-0-7-is-released/


ReplyQuote
janinex
(@janinex)
Active Member
Joined: 4 months ago
Posts: 12
12/02/2020 12:26 pm  

@elvina Thank you for you message. The stars are shown on every Post. Thats not the problem. I would like to activate the starts on this site:

https://www.finifuchs.de/hilfsmittel/stehen/

Thats the overview of the blog-posts. Do you know what i mean?

 

 


ReplyQuote
Elvina
(@elvina)
Prominent Member Moderator
Joined: 7 months ago
Posts: 757
12/02/2020 2:19 pm  

@janinex,

In this support topic, we already provide a solution on how to display the star rating on the blog-overview-pages.

https://gvectors.com/forum/how-to-and-troubleshooting/comment-answer-and-rating-stars/#post-18909

In case if you are not able to do it yourself, you should find some developers. 

Currently, we have a plugin customization and custom addon development services at the gVectors Team.
They can asses the work and create it for you. Just contact us via sales[at]gvectors.com email address and send a list of requirements you'd like to have.

 


ReplyQuote
janinex
(@janinex)
Active Member
Joined: 4 months ago
Posts: 12
20/02/2020 2:11 pm  

@elvina

Hey Thank you for the answer.

We tried it with this code in the blog_masonry-loop.php:

<span>
<a>
<span><?php echo "<br>"; echo do_shortcode('[wpdrating show-lable = false show-count=false show-average = true itemprop = false]'); ?></span>
</a>
</span>

 

It does not work... Reverted - shortcode has no access to the rating function - loads but only placeholder image.

 


ReplyQuote
Elvina
(@elvina)
Prominent Member Moderator
Joined: 7 months ago
Posts: 757
20/02/2020 3:06 pm  

@janinex,

You'll need to call the shortcode with post_id, in the above-mentioned code, and check again. It should work fine.

For example:

[wpdrating show-lable = false show-count=false show-average = true itemprop = false post_id = "X"]

Please note: post_id the id of the current Post, and the post_id is deferent in each post.

 

 


ReplyQuote
janinex
(@janinex)
Active Member
Joined: 4 months ago
Posts: 12
10/03/2020 11:47 am  

@elvina Thank u! It works now Smile

I tried to use the plugin for a single page but the form ist still missing. Have a look at the screenshots. Do i miss something?

Bildschirmfoto 2020 03 10 um 08.46.15
Bildschirmfoto 2020 03 10 um 08.46.06
Bildschirmfoto 2020 03 10 um 08.46.54

 


ReplyQuote
Astghik
(@astghik)
Support Team Admin
Joined: 2 years ago
Posts: 3831
10/03/2020 12:20 pm  

@janinex,

Probably the plugin that creates a single page don't use <?php comments_template() ?> function. Check out the last two points in this doc:

https://wpdiscuz.com/docs/wpdiscuz-documentation/getting-started/missing-comment-form/#tip_5

 


janinex liked
ReplyQuote
janinex
(@janinex)
Active Member
Joined: 4 months ago
Posts: 12
10/03/2020 1:02 pm  

Hey,

i added the code in the function.php:

function comment_support_for_my_custom_post_type() {
     add_post_type_support( 'my_post_type', 'comments' );
}
add_action( 'init', 'comment_support_for_my_custom_post_type' );

and in the wp-includes/comment-template.php does the code excist:

function comments_template( $file = '/comments.php', $separate_comments = false ) {
global $wp_query, $withcomments, $post, $wpdb, $id, $comment, $user_login, $user_ID, $user_identity, $overridden_cpage;

if ( ! ( is_single() || is_page() || $withcomments ) || empty( $post ) ) {
return;
}

if ( empty( $file ) ) {
$file = '/comments.php';
}

still missing the form...


ReplyQuote
janinex
(@janinex)
Active Member
Joined: 4 months ago
Posts: 12
10/03/2020 3:09 pm  

@astghik

Or did I miss something?

 


ReplyQuote
Astghik
(@astghik)
Support Team Admin
Joined: 2 years ago
Posts: 3831
10/03/2020 3:56 pm  

@janinex,

As I've already mentioned you should make sure the <?php comments_template() ?> function exists.

 


ReplyQuote
janinex
(@janinex)
Active Member
Joined: 4 months ago
Posts: 12
10/03/2020 4:26 pm  

@astghik

I do not think so. However, I am not an PHP expert...

 


ReplyQuote
Astghik
(@astghik)
Support Team Admin
Joined: 2 years ago
Posts: 3831
10/03/2020 5:08 pm  

@janinex,

just contact the plugin support and ask them if they use the function. 

 


ReplyQuote
Astghik
(@astghik)
Support Team Admin
Joined: 2 years ago
Posts: 3831
18/03/2020 3:33 pm  

@janinex,

The issue comes from the active theme. You should contact the theme support. The issue cannot be fixed by wpDiscuz side. 


ReplyQuote
Share: