Skip Navigation

[Resolved] Creating archive page for custom post type ('property')

This support ticket is created 6 years, 8 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
- 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 -
- 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 -

Supporter timezone: Europe/London (GMT+00:00)

This topic contains 6 replies, has 2 voices.

Last updated by mattF-4 6 years, 8 months ago.

Assisted by: Nigel.

Author
Posts
#691012
Screen Shot 2018-04-19 at 12.05.53.png

All I want to do is create an archive page template for my custom post type 'property'.

I have installed and followed the video instructions on how to do this and have a 'slug' of property in my archive layouts loop view. but i get a 404 when I try and load:

hidden link

I have permalinks set to post-name.

I have not done any theme integration - is this the issue?

(I'm using Avada + child theme)

thanks

Matt.

#691058

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

Screen Shot 2018-04-19 at 11.40.27.png

Hi Matt

You registered a post type "Property" with Types, is that right?

If you go to Toolset > Post Types and edit the property post type check the options and confirm that has_archive is checked and that you haven't changed the default rewrite rules.

#691178

Hi Nigel

Yes, you were right! I can see now how to create a new post type - the problem is that I already have a custom post type 'property' which I created with CPT plugin and I want to use this.

Whats the easiest way to register my existing 'property' post type and edit the archive template?

thanks

Matt.

#691321

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

Do you still need to use the other plugin for any reason?

If not you can deactivate it and (re-)create the same post type in Types.

Just be sure to use the same post slug.

#691349

I have about 50 posts under properties which I need to format. I dont mind deleting and recreating as long as the exisitng post data will be associated with the new one I re-create.

Is this ok? Will I keep the data?

thanks

Matt

#691351

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

Yes, if you use the same slug.

Try it out.

De-activate the other plugin and re-register the post type using Types, being careful to use the same slug.

You should still see all of your current posts.

If you don't it probably means you got the slug wrong, but in any case you can just remove the post type from Types and activate your old plugin again.

If you are worried, make a backup before you start.

Let me know how you get on. I don't know which plugin you are using, but assuming it uses standard WordPress functions to register post types, I don't anticipate any problem.

#845157

Hi Nigel,

Your suggestion worked - I disabled custom post types and now my page is showing:

hidden link

BUT I am still having some problems creating an archive page template with 2 columns.

Can you help me try and create a very simple page with 2 columns + 3 rows of custom post type property. ?

I will create a user for you if you let me know your email address?

thanks

Matt.