Skip Navigation

[Closed] How to make an offset for ther first View with shortcode

This support ticket is created 4 years, 9 months ago. There's a good chance that you are reading advice that it now obsolete.

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
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Kolkata (GMT+05:30)

This topic contains 7 replies, has 2 voices.

Last updated by Minesh 4 years, 9 months ago.

Assisted by: Minesh.

Author
Posts
#1618327

Hello again.
I'm trying to call to a view with a shortcode [wpv-view name="recipes-s-r"] . Everything is fine. But I want in the first call to have a offset of 1 element. So I've added offset="1" . It worked. But when I make a Search in the View it still using that offset and doesn't shows me the first result in the search.
hidden link

Is there a way/hack I can create that offset for only the first view?
Thanks! great work !

#1619799

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

I checked the problem URL you shared: hidden link
==>
I can see that at top of the page you are displaying one results in the center of the page and after that you added the custom search view. It seems you already fixed the issue. Have you? If no: Please let me know what is your expected results.

#1619803

Hi, no. What I need is not to repeat the first result from the grid.
As I told you using offset 1 helped, but it hides the first result when I make a search.
Is there a way to avoid this?

#1619807

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Do you mean that when page should load - you only want to display one record and allow user to search with Year and text search. And then when user makes the search, you want to display all results that fall in search criteria?

If no, can you please share few screenshots that help me to understand your issue and where exactly you added the same view multiple times?

#1619861

No. What I need is to load as it's loading:
But in the first load, the grid not to load the first result (because it repeats with the block its highlighted)

#1619881

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

The thing is that how do we know that what post you will display in that highlighted area?

#1619893

That is the last post created.
The highlight I'm showing it from another way.
The thing is that I want no te repeat the first one in the grid in the first load of the page.

#1619901

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

I think we need to use the view's filter hook in this case. Can you please share access details so I should try to apply and see if we able to get your desired results.

*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin and FTP) to your site. Preferably to a test site where the problem has been replicated if possible in order to be of better help and check if some configurations might need to be changed.

I have set the next reply to private which means only you and I have access to it.

The topic ‘[Closed] How to make an offset for ther first View with shortcode’ is closed to new replies.