Title: Query loop block
Last modified: July 15, 2023

---

# Query loop block

 *  Resolved [Carl](https://wordpress.org/support/users/carlbtmn/)
 * (@carlbtmn)
 * [3 years ago](https://wordpress.org/support/topic/query-loop-block-2/)
 * Has anyone tried the shortcode within a query loop and got it working?

Viewing 15 replies - 1 through 15 (of 21 total)

1 [2](https://wordpress.org/support/topic/query-loop-block-2/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/query-loop-block-2/page/2/?output_format=md)

 *  Plugin Author [oacstudio](https://wordpress.org/support/users/oacstudio/)
 * (@oacstudio)
 * [3 years ago](https://wordpress.org/support/topic/query-loop-block-2/#post-16920460)
 * Hi [@carlbtmn](https://wordpress.org/support/users/carlbtmn/),
 * Appreciate you opening your own thread. We can reproduce the behaviour and will
   take a look next week.
 * If anybody has any input, feel free to add it here.
 * Kind regards,
 *  Thread Starter [Carl](https://wordpress.org/support/users/carlbtmn/)
 * (@carlbtmn)
 * [3 years ago](https://wordpress.org/support/topic/query-loop-block-2/#post-16921646)
 * Thank you for replying. This is great news!
 *  Plugin Author [oacstudio](https://wordpress.org/support/users/oacstudio/)
 * (@oacstudio)
 * [3 years ago](https://wordpress.org/support/topic/query-loop-block-2/#post-16936306)
 * Hi [@carlbtmn](https://wordpress.org/support/users/carlbtmn/),
 * In our initial design we omitted output outside of single page templates deliberately.
   That is why you get null output outside pages / posts.
 * However we understand that this may be required.
    We will add an option to the
   plugin that allows to toggle display in archive templates which should also make
   it available in query loops.
 * Kind regards,
 *  Thread Starter [Carl](https://wordpress.org/support/users/carlbtmn/)
 * (@carlbtmn)
 * [3 years ago](https://wordpress.org/support/topic/query-loop-block-2/#post-16936336)
 * This is great! Especially when you want to show posts in a loop in the homepage.
   Question… Is it possible to limit just for logged_in users? The way I would do
   it is to show the like icon with the count, but once clicked and not_logged_in,
   replace the icon with a login link to let them know an account is required. I
   know this is more of an enhancement to the actual plugin, but I figured I would
   ask.
 * Thank you.
 * -Carl
 *  Thread Starter [Carl](https://wordpress.org/support/users/carlbtmn/)
 * (@carlbtmn)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/query-loop-block-2/#post-16992245)
 * [@oacstudio](https://wordpress.org/support/users/oacstudio/) any updates?
 *  Plugin Author [oacstudio](https://wordpress.org/support/users/oacstudio/)
 * (@oacstudio)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/query-loop-block-2/#post-17032962)
 * Hi [@carlbtmn](https://wordpress.org/support/users/carlbtmn/)
 * Thanks for being patient.
    Could you give this pre-release a whirl and see if
   that works for you:
 * [https://a.cl.ly/v1un11mY](https://a.cl.ly/v1un11mY)
 * There is a new setting available “Enable Post Likes in Loop” which should make
   it possible for you to use likes in custom query loops.
 * Kind regards,
 *  Thread Starter [Carl](https://wordpress.org/support/users/carlbtmn/)
 * (@carlbtmn)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/query-loop-block-2/#post-17033317)
 * Hello! Thank you for getting in touch with me.
 * I installed the new version (Version 1.0.9) from scratch and enabled “_Enable
   Post Likes in Loop_“, but it stills identifies each post with the same ID.
 * Is there something else I can test? Thank you.
 *  Thread Starter [Carl](https://wordpress.org/support/users/carlbtmn/)
 * (@carlbtmn)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/query-loop-block-2/#post-17033336)
 * This is the URL for all the posts when I hover the like button:
 *     ```wp-block-code
       action=oacs_spl_process_like&post_id=382&nonce=9d7c03dc33&is_comment=0&disabled=true
       ```
   
 *  Plugin Author [oacstudio](https://wordpress.org/support/users/oacstudio/)
 * (@oacstudio)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/query-loop-block-2/#post-17036271)
 * Hi [@carlbtmn](https://wordpress.org/support/users/carlbtmn/)
 * Thank you for testing this.
 * > I installed the new version (Version 1.0.9) from scratch and enabled “Enable
   > Post Likes in Loop“, but it stills identifies each post with the same ID. Is
   > there something else I can test? Thank you.
 * Let’s try the other way around first. Could you explain what we need to do to
   duplicate your behaviour? I thought we had a way of reproducing but it seems 
   you are doing something slightly different.
    We would like to try and mimic exactly
   what you do so we can understand where it fails for you.
 * Kind regards,
 *  Thread Starter [Carl](https://wordpress.org/support/users/carlbtmn/)
 * (@carlbtmn)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/query-loop-block-2/#post-17036676)
 * A query loop with post type: “Post” and with a category filter. I put your shortcode
   in a paragraph and that’s it. Nothing special. The like button does show up for
   all the posts, but with the same post ID.
 *  Plugin Author [oacstudio](https://wordpress.org/support/users/oacstudio/)
 * (@oacstudio)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/query-loop-block-2/#post-17039189)
 * Hi again,
 * Could you share your code or the template file? It will be hard to diagnose unless
   we can see it.
 * Kind regards,
 *  Thread Starter [Carl](https://wordpress.org/support/users/carlbtmn/)
 * (@carlbtmn)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/query-loop-block-2/#post-17039599)
 * On the other thread similar to this one, you mentioned that the plugin does not
   work with the block editor? Can you explain?
 * Thank you.
    -  This reply was modified 2 years, 11 months ago by [Carl](https://wordpress.org/support/users/carlbtmn/).
 *  Plugin Author [oacstudio](https://wordpress.org/support/users/oacstudio/)
 * (@oacstudio)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/query-loop-block-2/#post-17040596)
 * > On the other thread similar to this one, you mentioned that the plugin does
   not work with the block editor? Can you explain?
 * Solid Post Likes currently declares no Block Editor support yet. Meaning we have
   not added any Block Editor support nor do we test with it currently. This is 
   something we will need to add as a feature. However I am afraid support for the
   Block Editor is currently no priority for us. If the Solid Post Likes plugin 
   grows in installations we will consider it.
 *  Thread Starter [Carl](https://wordpress.org/support/users/carlbtmn/)
 * (@carlbtmn)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/query-loop-block-2/#post-17041156)
 * Ok.. If that is the case and the plugin is not ready to be used in the block 
   editor, then what is the correct way to use the “_Enable Post Likes in Loop_“?
 * Thank you.
 *  Plugin Author [oacstudio](https://wordpress.org/support/users/oacstudio/)
 * (@oacstudio)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/query-loop-block-2/#post-17048179)
 * You would use it with custom functions. For example via: [https://developer.wordpress.org/reference/functions/do_shortcode/](https://developer.wordpress.org/reference/functions/do_shortcode/)
   which you insert into a custom loop in your template. That is it’s main purpose.

Viewing 15 replies - 1 through 15 (of 21 total)

1 [2](https://wordpress.org/support/topic/query-loop-block-2/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/query-loop-block-2/page/2/?output_format=md)

The topic ‘Query loop block’ is closed to new replies.

 * ![](https://ps.w.org/solid-post-likes/assets/icon.svg?rev=3609380)
 * [Solid Post Likes](https://wordpress.org/plugins/solid-post-likes/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/solid-post-likes/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/solid-post-likes/)
 * [Active Topics](https://wordpress.org/support/plugin/solid-post-likes/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/solid-post-likes/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/solid-post-likes/reviews/)

 * 21 replies
 * 4 participants
 * Last reply from: [oacstudio](https://wordpress.org/support/users/oacstudio/)
 * Last activity: [2 years, 4 months ago](https://wordpress.org/support/topic/query-loop-block-2/page/2/#post-17496431)
 * Status: resolved