Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using a shortcode in a query loop results in incorrect display. #163

Open
beckej13820 opened this issue Mar 3, 2024 · 2 comments
Open

Comments

@beckej13820
Copy link

WIth Full Site Editing themes like the WordPress default theme Twenty Twenty-Four, it would be nice to be able to use this plugin inside query loops.

When I attempted to do this, I got buggy behavior, in that all posts on the archive page show the value of the first post displayed.

Here's my setup so that you can try to reproduce it:

On my archive page, I have a query loop. Inside the query loop, I use the shortcode method to include display the ratings:
Screenshot 2024-03-03 at 4 31 40 PM

This creates a display. As noted above, please note that the rating count is incorrectly displayed as the same for all three posts.
Screenshot 2024-03-03 at 4 34 58 PM

Please note that the second post on the list shows a different number when viewed on a post page. The post page is the correct value.

Screenshot 2024-03-03 at 4 35 15 PM
@vladossipov
Copy link

Same thing, how did you solve this problem?

@beckej13820
Copy link
Author

@vladossipov

Unfortunately no. I haven't found a fix so have removed the ranking from the query loop for now.

I wondered if I used WPCode to create a custom shortcode if I could make it work. But I haven't spent the time on this project.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants