Skip Navigation

[Resolved] The first entry of all search results is the page I'm on.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Sao_Paulo (GMT-03:00)

This topic contains 11 replies, has 2 voices.

Last updated by ahmadG 2 years ago.

Assisted by: Mateus Getulio.

Author
Posts
#2602919
Screenshot 2023-05-05 at 2.18.57 am.png

I am trying to:
I think I'm experiencing this bug https://toolset.com/errata/wrong-output-for-the-first-item-in-the-loop-of-a-view/ however I have the latest version 1.6.7 so not sure why it is occurring...
Link to a page where the issue can be seen:
hidden link (Site is locked as it is not live)

I expected to see:

I don't expect to see the first entry "Products" which is referring to the page I'm on... see screenshot attached,

Instead, I got:

I see "products" and it's is not a post in the loop. This happens on all searches as they all have the featured images showing.

#2603001

Mateus Getulio
Supporter

Languages: English (English )

Timezone: America/Sao_Paulo (GMT-03:00)

Hey there,

Thanks for your contact!

When you're inserting the View, you should find the option 'Don't include the current page in the query result', in the 'Content Selection' box for the View block, like this: hidden link

Could you please check if it is disabled? If so, just try to enable it, save the page and check if it solves the issue.

Looking forward to your reply. Thanks!

Best,
Mateus.

#2603023

Hi Mateus,

Thank you for your reply.

I'm using Elementor and I looked for a similar option in the view widget but unable to locate it.

FYI, I set this up using the views menu in Toolset.

Regards,
Ahmad

#2603485

Mateus Getulio
Supporter

Languages: English (English )

Timezone: America/Sao_Paulo (GMT-03:00)

Hello Ahmad,

Thanks for your reply.

I would like to request temporary access (wp-admin and FTP) to your site to take better look at the issue. You will find the needed fields for this below the comment area when you log in to leave your next reply. The information you will enter is private which means only you and I can see and have access to it.

Our Debugging Procedures

I will be checking various settings in the backend to see if the issue can be resolved. Although I won't be making changes that affect the live site, it is still good practice to backup the site before providing us access. In the event that we do need to debug the site further, I will duplicate the site and work in a separate, local development environment to avoid affecting the live site.

Privacy and Security Policy

We have strict policies regarding privacy and access to your information. Please see:
https://toolset.com/privacy-policy-and-gdpr-compliance/#data-shared-with-our-support
**IMPORTANT**

- Please make a backup of site files and database before providing us access.
- If you do not see the wp-admin/FTP fields this means your post & website login details will be made PUBLIC. DO NOT post your website details unless you see the required wp-admin/FTP fields. If you do not, please ask me to enable the private box. The private box looks like this: hidden link

Please, let me know if you need any additional details. Have a nice day.

#2604061

Mateus Getulio
Supporter

Languages: English (English )

Timezone: America/Sao_Paulo (GMT-03:00)

Hi there,

Thanks for providing the credentials.

Just to make sure, do we have your authorization to make a copy of the website and migrate it into another server? In order to perform more complex tests without compromising the live production.

Please keep us posted about it. Thank you.

#2604183

Hi Mateus,

Please don't copy site as this has customer information. You may replicate it's a simple elementor install.

Any idea on why this is happening so far?

Thank you!

#2604185

Hi Mateus ,

I added the following condition "[wpv-conditional if="( '[wpv-loop-index]' gt '0' )"]" to the Loop item in View for both products and projects. This basically removed the first entry.

This is a temp workaround as we need to get customer site functional, but the issue still needs to be resolved as I suspect in the future this will have an effect of always removing the first entry which may be a correct entry.

Thank you.

#2604507

Mateus Getulio
Supporter

Languages: English (English )

Timezone: America/Sao_Paulo (GMT-03:00)

Hey there,

Thanks for your reply.

In this case, would you be able to provide a staging version where we can make complex tests without compromising the live production? Or, if you prefer to do the test directly there, please try it:

- Deactivate all the plugins that are not related to WPML
- Switch for a moment to a WordPress default theme like Twenty Twenty-one
- If the issue is gone, activate one by one to see with which one there is an interaction issue

Could you please tell me the results of this investigation?

I'm enabling the private fields, if it is possible to provide a staging version, so that we can check it better.

Thank you,
Mateus.

#2604849

Mateus Getulio
Supporter

Languages: English (English )

Timezone: America/Sao_Paulo (GMT-03:00)

Hi there,

Thanks a lot for your cooperation!

I have escalated this ticket to our 2nd tier of support where our 2nd tier specialists will take a deeper look at this issue and will try to find a solution.

I will get back to you as soon as I get an answer from them.

Best regards,
Mateus

#2605191

Mateus Getulio
Supporter

Languages: English (English )

Timezone: America/Sao_Paulo (GMT-03:00)

Hi Ahmad,

Thanks for your patience.

Upon further inspection, we have found a very simple solution.

By editing the View in question we see that in the Loop Editor you have included the shortcode for the template used for each loop iteration before the loop as well as within it: hidden link

Deleting that shortcode fixes the problem. Could you please review it and let us know if the issue is solved now? Thank you.

Best,
Mateus.

#2605379

Issue is resolved Thank you!

#2605381

My issue is resolved now. Thank you!