WPIntell

Source evidence

Query loop block

Solid Post Likes · support · 2023-07-15T00:38:00+00:00

mixedsentiment
mediumseverity
0.84relevance
21replies
Evidence linked to opportunitycommercial context

Proof Health

Open evidence

Commercial opportunities need traceable source links before they are treated as build-worthy.

1 / 21 rows with source links

4.8% of this page's analysis has direct source links.

0 build-decision rows missing links

0 rows here require auditable proof before promotion.

20 rows with no attached evidence

0 rows have source counts but still need direct links.

Conversation

support
Carl resolved
Has anyone tried the shortcode within a query loop and got it working? Hi @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, Thank you for replying. This is great news! Hi @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, 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 @oacstudio any updates? Hi @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 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, 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. This is the URL for all the posts when I hover the like button: action=oacs_spl_process_like&post_id= 382 &nonce=9d7c03dc33&is_comment=0&disabled=true Hi @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, 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. Hi again, Could you share your code or the template file? It will be hard to diagnose unless we can see it. Kind regards, 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, 8 months ago by Carl . > 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. 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. You would use it with custom functions. For example via: https://developer.wordpress.org/reference/functions/do_shortcode/ which you insert into a custom loop in your template. That is it’s main purpose. Thank you for the information. Hopefully we get block editor functionality in the near future. Hi again, > Hopefully we get block editor functionality in the near future. Noted :). I’m going to mark this as resolved for now – if you have any further questions, you can start a new thread. Kind regards, Hi, have the same challenge. My client would love to have the plugin made available on loops in archive and search querie outputs. That would be the main location where readers (it’s a blog) might be giving there votes. Is there any news on this topic? Hi @katjaheigl , From what we can tell custom code integration works, when the setting is toggled. Could you show us your template code? Kind regards, Hi, I am looking for the setting and cannot find it. Where is it located? Kind regards, Pedro Branco This reply was modified 2 years, 2 months ago by Pedro Branco . Hi Pedro, We were all a bit on the wrong track here. There is no working setting yet. You will need to use custom code for now as described here: https://wordpress.org/support/topic/shortcode-not-displayed-in-wp_query-results/ Kind regards,

Comments

21 shown
oacstudio 2023-07-25T08:00:00+00:00

Hi @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,

Carl 2023-07-25T14:26:00+00:00

Thank you for replying. This is great news!

oacstudio 2023-07-31T17:45:00+00:00

Hi @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,

Carl 2023-07-31T18:00:00+00:00

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

Carl 2023-08-22T12:56:00+00:00

@oacstudio any updates?

oacstudio 2023-09-07T11:38:00+00:00

Hi @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 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,

Carl 2023-09-07T13:45:00+00:00

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.

Carl 2023-09-07T13:52:00+00:00

This is the URL for all the posts when I hover the like button: action=oacs_spl_process_like&post_id= 382 &nonce=9d7c03dc33&is_comment=0&disabled=true

oacstudio 2023-09-08T15:09:00+00:00

Hi @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,

Carl 2023-09-08T17:51:00+00:00

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.

oacstudio 2023-09-10T14:05:00+00:00

Hi again, Could you share your code or the template file? It will be hard to diagnose unless we can see it. Kind regards,

Carl 2023-09-10T20:21:00+00:00

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, 8 months ago by Carl .

oacstudio 2023-09-11T08:51:00+00:00

> 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.

Carl 2023-09-11T11:42:00+00:00

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.

oacstudio 2023-09-13T15:36:00+00:00

You would use it with custom functions. For example via: https://developer.wordpress.org/reference/functions/do_shortcode/ which you insert into a custom loop in your template. That is it’s main purpose.

Carl 2023-09-13T17:53:00+00:00

Thank you for the information. Hopefully we get block editor functionality in the near future.

oacstudio 2023-10-24T12:27:00+00:00

Hi again, > Hopefully we get block editor functionality in the near future. Noted :). I’m going to mark this as resolved for now – if you have any further questions, you can start a new thread. Kind regards,

katjaheigl 2024-02-21T14:15:00+00:00

Hi, have the same challenge. My client would love to have the plugin made available on loops in archive and search querie outputs. That would be the main location where readers (it’s a blog) might be giving there votes. Is there any news on this topic?

oacstudio 2024-02-26T05:49:00+00:00

Hi @katjaheigl , From what we can tell custom code integration works, when the setting is toggled. Could you show us your template code? Kind regards,

Pedro Branco 2024-03-12T11:14:00+00:00

Hi, I am looking for the setting and cannot find it. Where is it located? Kind regards, Pedro Branco This reply was modified 2 years, 2 months ago by Pedro Branco .

oacstudio 2024-03-13T09:23:00+00:00

Hi Pedro, We were all a bit on the wrong track here. There is no working setting yet. You will need to use custom code for now as described here: https://wordpress.org/support/topic/shortcode-not-displayed-in-wp_query-results/ Kind regards,