• Resolved herold

    (@herold)


    It looks like the Offset for the Post Carousel does not work. I have 12 posts and 5 visible. For each post, I want it to show in the middle of the 5 visible. But whatever number I use, there is no change. But I can see that in the preview mode in Gutenberg after a few seconds, the posts move backward and forward.

    The page I need help with: [log in to see the link]

Viewing 15 replies - 1 through 15 (of 19 total)
  • Plugin Support Mahbub Shovan

    (@mahbubshovan)

    Hi @herold

    I hope this message finds you well. I have conducted a thorough check on your system and everything appears to be working perfectly fine. You can view my findings at this link: https://d.pr/v/Eqs0i0.

    To further assist you with a solution, please provide me with a screencast from your end so I can better understand the issue and provide an appropriate solution. Rest assured, we will work together to resolve the issue promptly.

    Looking forward to your response.
    Have a great day!

    Thread Starter herold

    (@herold)

    Hello Mahbub,

    thank you for the check and the reply. As far as I understand, I can use the offset to start the carousel not with the first, but with the one that is determined by the offset. I have 12 pages that all have the same carousel. What I am trying to accomplish is, that the current page is reflected in the middle of the carousel. For example, this URL below is the 5th entry (sorted by POST ID). So I would set the offset to either 4 or -4 to have the carousel show it in the middle of my 5 posts.

    I do use the category feature to select the 12 posts and the infinite option. Order ASC and excluding current post is disabled. Currently, I have set the offset to 0, because of the issue.
    https://metawende.de/lebensbereich-kreativitaet/

    Thomas Herold

    • This reply was modified 1 year, 8 months ago by herold.
    • This reply was modified 1 year, 8 months ago by herold.
    • This reply was modified 1 year, 8 months ago by herold.
    Thread Starter herold

    (@herold)

    Any feedback or news on my latest message?

    Plugin Support Mahbub Shovan

    (@mahbubshovan)

    Hi @herold

    I hope this message finds you well. Would it be possible for you to create a test page with an offset input and share the URL with me? This will allow me to investigate the issue and provide you with an update as soon as possible. I apologize for the delay in my response and any inconvenience this may have caused.

    Thank you for your understanding and cooperation. I look forward to your response and hope you have a great day!

    Thread Starter herold

    (@herold)

    Here is the test page with the post carousel and an offset: -4. The post goes through an Elementor template, to show header and footer. I am using the free Astra theme.
    https://metawende.de/test-carousel/
    There is also an issue with double arrow elements, but in my posts I fixed this with some CSS.

    • This reply was modified 1 year, 8 months ago by herold.
    • This reply was modified 1 year, 8 months ago by herold.
    Plugin Support Mahbub Shovan

    (@mahbubshovan)

    Hi @herold

    Thank you for sharing the live URL with me. However, it appears that the offset setting may not be functioning as intended. When you use the offset setting, it skips the first few posts in the query, causing the carousel to start from a later post. For example, if you set the offset to 4, the first 4 posts will be excluded, and the carousel will start with the 5th post.

    Unfortunately, there doesn’t seem to be an option to center the post every time it appears. I apologize for any inconvenience this may cause. Please don’t hesitate to let me know if you have any further questions or concerns.

    I hope this clarifies the situation. Thank you again for your time.
    Have a great day!

    Thread Starter herold

    (@herold)

    Hello Mahbub,
    thank you, that explains it. Would be nice to see such an option in the future, as it adds usability. I do have some programming knowledge – is there a hook or filter I can use?

    Thread Starter herold

    (@herold)

    Hello Mahbub,
    do you offer any hooks or filters for this widget?

    Plugin Support Mahbub Shovan

    (@mahbubshovan)

    Hi @herold

    I hope you are doing well. I wanted to update you that our development team is currently implementing the hooks you requested, and we will inform you of the progress and provide another update here shortly.

    We appreciate your patience and understanding, and we ask that you allow us some more time to work on this new update. If you have any further questions or concerns in the meantime, please do not hesitate to reach out to us.

    Thank you, and have a great day!

    Thread Starter herold

    (@herold)

    That’s great news. Thank you and keep me posted.

    Plugin Support Mahbub Shovan

    (@mahbubshovan)

    Hi @herold

    Please review the following zip file. We have included two filters that allow users to modify the query result array. These filters are:

    Post Grid Filter:?eb_post_grid_query_results
    Post Carousel Filter:?eb_post_carousel_query_results
    Those filters have one?parameter$query,?which is an?array?type.
    Here is an example function:

    function eb_post_carousel_query_filter($query) {
    return $query;
    }
    add_filter('eb_post_carousel_query_results', 'eb_post_carousel_query_filter');


    Please give them a try and let me know if you have any questions or concerns.

    Have a nice day.

    Thread Starter herold

    (@herold)

    Hello Mahbub,
    that’s wonderful! I just installed this new version, and I am going to see if I can change the query to have it sorted and displayed according to my needs. Will post my results once I have it working.

    Thread Starter herold

    (@herold)

    Not as easy as I thought. I looked through the query, and I am not certain how to manipulate it the way I want. Any ideas or hints on this?

    Thread Starter herold

    (@herold)

    When I look into the query I see my 12 posts, however there is no indicator in these posts that determines the view of only 5 or any other way to display. It looks like this is done in the browser with jquery.

    Plugin Support Mahbub Shovan

    (@mahbubshovan)

    Hi @herold

    Please add the following code to your theme’s function.php file to improve the post-carousel query results. Once added, kindly let me know if the issue has been resolved.

    I look forward to hearing back from you with your feedback on this solution.

    Have a nice day.

Viewing 15 replies - 1 through 15 (of 19 total)
  • The topic ‘Post Carousel Offset Not Working’ is closed to new replies.