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

Database values still fetched from first post only #2

Open
Knocks opened this issue Sep 4, 2023 · 4 comments
Open

Database values still fetched from first post only #2

Knocks opened this issue Sep 4, 2023 · 4 comments

Comments

@Knocks
Copy link

Knocks commented Sep 4, 2023

I installed this plugin hoping to resolve the issue of the Gutenberg loop fetching database values from the first post of the loop and showing the same values for all posts. But so far I'm getting the same results as with the standard Gutenberg loop.

Is this plugin intended to address a different issue from the one I'm facing?

@KeanuTang
Copy link
Owner

It should be fetching the queried posts. What shortcode/plugin are you trying to use? I just checked where I set this up, and it's working correctly.

@Knocks
Copy link
Author

Knocks commented Sep 7, 2023

I needed to get it to work with plugins that allow voting on posts, such as like/dislike counters. I have tried several of these plugins, and they don't work in loops (only the first post's data is displayed correctly and duplicated in all other posts in the loop). My solution was to install a plugin called Meta Field Block to show like/dislike data directly from post meta in the database.

@KeanuTang
Copy link
Owner

Ok, I'll try to troubleshoot this further. Looks like you were using posts (my test example uses pages), so I wonder if that's where the problem is coming from.

@etzel42
Copy link

etzel42 commented Nov 16, 2023

Any updates on this? I am using this plugin with posts too.. @KeanuTang I replied to a wordpress support forum post which you posted a link to your plugin, but for whatever reason it seems to have been removed.. but I had first used the standard shortcode block and had a function to re-render/run do_shortcode() for html, paragraaphs etc and that was working fine. But since WP v6.4 that work around is not working anymore. I found your plugin and thought I'd give it a try, but again that's not working either.

Perhaps its what you're thinking because its on a post and not pages, though I can't imagine it would be much different in the back end.

I just don't get why WP hasn't fixed this issue themselves.. seems like that closed their ticket on the subject and think its fine because someone found the workaround.

Hoping you can update the plugin with a fix!

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

3 participants