Skip Navigation

[Closed] Archive Loop is repeating

This support ticket is created 4 years 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 4 replies, has 2 voices.

Last updated by Minesh 4 years ago.

Assisted by: Minesh.

Author
Posts
#1890695

I'm trying to implement my first couple of custom post types and have got quite some way along with the tutorials and answers to similar questions on the forums, however I've hit a snag with my first new archive view.

I've got it working as I would like, however it's repeating the loop on the archive page. You can see it here: hidden link

The problem is only apparent when no search is being made.

Seeing an answer to one other similar query on the forum I'm assuming this is more an issue on my theme's side rather than toolset, but the solution wasn't clear from that thread.

As the repeated blocks are linked in ID there's no clean CSS route to simply hide the repetition (and I'd like a cleaner solution than that if possible anyway).

Beyond that, I'm not too savvy with hacking around in the php files either, so a little help would be greatly appreciated.

Thanks!

#1891383

Minesh
Supporter

Languages: English (English )

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

Hello. Thank you for contacting the Toolset support.

I checked the archive link you shared and yes, I can see the loop two times on the archive page.

I will require access details to check whats going wrong with your setup and how exactly you build the archive.

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

#1893929

Minesh
Supporter

Languages: English (English )

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

Indeed, it looks like the issue is from your theme.

If you change the theme to default theme 2021 - do you see it works? If yes, then indeed it will be theme conflict.

The only solution then is to create an archive PHP template within your theme that should call the the_content() function.

Please check the following Doc:
=> https://toolset.com/documentation/programmer-reference/theme-support-for-content-templates/

#1895081

Thanks Minesh.

Using the link you've provided I am trying to add 'Theme Support for Content template', but having enabled the debug mode to try and identify the appropriate function, but that's not actually showing up any additional info when I try to Design/View that page. Inspecting elements has got me anywhere either.

I've not quite savvy enough to create my own archive PHP template with content function. Is it possible to get a little more help with this?

#1896131

Minesh
Supporter

Languages: English (English )

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

The possibility would be to create a child theme and within the child theme you should create your PHP archive template that should have the_content() function.

I do not have access to FTP, but can you please create a child theme and send me FTP access details and I will see what I can do.

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

The topic ‘[Closed] Archive Loop is repeating’ is closed to new replies.