Skip Navigation

[Resolved] Custom archive combined with theme's archive

The Toolset Community Forum is closed, for technical support questions, please head on to our Toolset Professional Support (for paid clients), with any pre-sale or admin question please contact us here.
This support ticket is created 7 years, 1 month ago. There's a good chance that you are reading advice that it now obsolete.
This is the community support forum for Types plugin, which is part of Toolset. Toolset is a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients and people who registered for Types community support can post in it.

Sun Mon Tue Wed Thu Fri Sat
- - 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00
- - - - - - -

Supporter timezone: Asia/Ho_Chi_Minh (GMT+07:00)

This topic contains 7 replies, has 2 voices.

Last updated by Beda 7 years ago.

Assisted by: Beda.

Author
Posts
#588168

I am trying to create a custom archive layout for my custom taxonomies

Link to a page where the issue can be seen: hidden link

I expected to see: Just the custom layout I created

Instead, I got: The custom layout I created above the theme's archive layout

#588809

I think your Theme is not integrated and you used Layouts.
Layouts replaces the content.
Hence, the Archive now shows double.

Can you try to disable Toolset Layouts, and apply the WordPress Archive?
This should work.

If not, can you send me a copy of the theme?
I activated a private reply for that.

#588825

But if I disable the layouts, won't I be stuck with my theme's archive layout? I just want the one that I created.

#589571

No, because you can style it with WordPress Archives menu under Toolset > WordPress Archives.

You can then apply what you create there to your archive.

That should solve the problem.

Can you confirm this?

#589630

I disabled the archive layout and just used the wordpress archives in toolset, but still have the same issue. I'm using BeTheme
You can log in to it if you want and take a look. Maybe I'm missing something.
<removed by admin>

#589662

I currently have the original archive data hidden with css by just doing a display: non on .post-item { I would like to avoid having to hide it, though.

#589804

It seems this theme has a lot of customized templates for archives and more.

I need to debug this locally. The theme is a proprietary one. Can you share the ZIP of the original, freshly downloaded Theme?
I can then either spot the BUG in no time or provide you the exact steps to solve the issue you are facing.

Thank you for the collaboration and patience.

#590223

Well, this theme has no archive.php, hence it falls back to the index.php according the WordPress hierarchy, and in there, the Theme clearly adds his own loop.

What happens on archives now is that Toolset Views properly puts it's loop on top of the page, and after the Toolset Output the Theme renders it's posts as well.
See content-post.php around line 37, where the HTML class for those posts is defined.
This template is used to render the posts on your archives, and since the Theme has no archive it uses index.php.
In the index, several custom functions are used to render the things, this is not something I can debug.

What I suggest is create a Child Theme, add an archive.php file to it and use just a very minimal code, please consult the Theme Twenty Seventeen for a good example.

This will then work properly.

This theme uses customized Loop and Content functions, and Toolset Layouts cannot accept anything else but standard WordPress loops.
Toolset Views accepts custom functions for the content, but on the archive we do not replace a content per se, we replace a whole loop.

The only solution here is to use a Child theme with a correctly coded archive template.

I will list this theme so we can also look into this (we have a compatibly team).
But we cannot solve this, it will either require some cooperation with the Theme Developers or eventually we can find some workaround.

Thank you for reporting it.

The forum ‘Types Community Support’ is closed to new topics and replies.