Skip Navigation

[Resolved] Use the same Theme archive style whit toolset custom 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 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.

This topic contains 3 replies, has 2 voices.

Last updated by Luo Yang 4 years, 5 months ago.

Assigned support staff: Luo Yang.

Author
Posts
#401975

Hi, i wish use the theme archive style and theme content template in toolset custom archive . How can i do?

#402142

Luo Yang
Supporter

Languages: English (English ) Chinese (Simplified) (简体中文 )

Timezone: Asia/Hong_Kong (GMT+08:00)

Dear alessandrot,

Could you describe the question with more details?
Are you going to apply the same Views wordpress archive to different archive page of post types or taxonomy?
If it is, you can create/edit a wordpress archive with Views plugin, in section "Loops Selection", choose the post types and custom taxonomies you want, see our document:
WordPress Archive – Customizing the Appearance of Archive Pages
https://toolset.com/documentation/user-guides/normal-vs-archive-views/
Screenshot:
hidden link

#402288

Hi Luo Yang! thanks for your support!
My problem is this:
I wish display ,in my home/blog page , "posts" and custom post type "Events" sort by custom field "start-date" and filter by "date >= today" .
I think that the best way to do this is to create a "custom Archive" and set it as home/blog.

If i create a "custom Archive " can i use the same style of my "theme home/blog" page whitout using html & css code? i 'm not practice with code..

if is not possible , there is another way to solve my problem?
Thank you very much!

#402611

Luo Yang
Supporter

Languages: English (English ) Chinese (Simplified) (简体中文 )

Timezone: Asia/Hong_Kong (GMT+08:00)

The query of wordpress archive page is defined by wordpress itself, Views can not modify it, I suggest you create a view list "Events" posts, sort by custom field "start-date", and filter by "date >= today":
https://toolset.com/documentation/user-guides/date-filters/

Then put it into a page, use this page as your wordpress home page.

If you need to render it with PHP codes, please try Views function render_view():
https://toolset.com/documentation/user-guides/views-api/

Hope it help

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