Viewing 15 replies - 1 through 15 (of 21 total)
  • Plugin Author Imageoacstudio

    (@oacstudio)

    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,

    Thread Starter ImageCarl

    (@carlbtmn)

    Thank you for replying. This is great news!

    Plugin Author Imageoacstudio

    (@oacstudio)

    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,

    Thread Starter ImageCarl

    (@carlbtmn)

    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 ImageCarl

    (@carlbtmn)

    @oacstudio any updates?

    Plugin Author Imageoacstudio

    (@oacstudio)

    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,

    Thread Starter ImageCarl

    (@carlbtmn)

    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 ImageCarl

    (@carlbtmn)

    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
    Plugin Author Imageoacstudio

    (@oacstudio)

    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,

    Thread Starter ImageCarl

    (@carlbtmn)

    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 Imageoacstudio

    (@oacstudio)

    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 ImageCarl

    (@carlbtmn)

    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, 9 months ago by ImageCarl.
    Plugin Author Imageoacstudio

    (@oacstudio)

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

    (@carlbtmn)

    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 Imageoacstudio

    (@oacstudio)

    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.

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

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