Custom Archive Page Auto Create & Display Error

Hi team,

I’ve created an archive page layout that will be an archive page for each custom post type “messages” category. I have created this layout and have a couple of questions:

  1. I’m getting an error and this page won’t display, despite the fact that I have set the assignment conditions (error says: It appears whatever you were looking for is no longer here or perhaps wasn’t here to begin with. You might want to try starting over from the homepage to see if you can find what you’re after from there.)
  2. is there a way for a new archive page to auto-create every time a new messages category is created, just like what would happen when a new blog category is created?

Thanks so much!!

Hi @texaskiwi13,

I have checked your website and found the issue you described here. There might be some different reasons behind your issue, I would like to suggest troubleshooting the following common issue to help us to recognize the reason.

1.Theme Related Issue
2.Plugin Conflict
3.Theme Update related issue
4.Child Theme Related issue
5.CSS/JS Customization
6.Disabling Cache
7.Disabling CDN

If you discover that an issue is coming from a custom code or 3rd party plugin, kindly consult with a developer or contact the plugin author. Please note that we do not provide support for custom codes and 3rd party plugins.
If none of the above helps and you are still getting the issue, please copy your live site to a staging server so we could troubleshoot freely without breaking your live site.
And give us access to the secure note including:

– WordPress Site URL & Login URL
– WordPress Admin username/password

To create a secure note, click the key icon underneath any of your posts.

Thanks

Hi,

I can’t see an obvious reason why I’m getting the error message. Can you please look into it with the credentials I provided above, as they are for the staging site.

Also, you did not answer my second question:

  1. is there a way for a new archive page to auto-create every time a new messages category is created, just like what would happen when a new blog category is created?

Thank you!

ashley

Hey Ashley,

Regarding your question #1, you’re using the Category taxonomy of the default Post post type for your Message post type. That is incorrect. You should create a unique taxonomy for your Message post type like Message Category.

The reason why you’re getting It appears whatever you were looking for is no longer here or perhaps wasn’t here to begin with. is because the Post post type is empty.


Regarding your question #2, do you mean you want the Layout Builder to automatically create another layout like your Archive Layout assigned to a specific Post Category? That is not possible.

image

What you can do though is set the condition to the Message Taxonomy is Message Category. That way, all Message Categories including new ones will use the layout so there’s no need to create a layout for each Message Category.

That will only be possible after you’ve create the Message Category that I’ve mentioned. Right now, your Message Taxonomy shows the Post Category which is a taxonomy used by the Post post type.

image

If you’re not familiar with setting up post types correctly and you need further guidance, please consider signing up to our One premium support where we cover all WordPress topics. Our theme support only covers features of our products. Setting up Custom Post Types is a WordPress topic.

Hope that helps and thank you for understanding.

Thanks Christian! I think I have it set up correctly now. I’ve created the taxonomy “message category” and applied it to the Messages post type.

I have then gone into my layout builder and adjusted my assignment conditions for the following layouts:

Message Series Archive

All Messages

Now the issue I’m running into is, that when i click “view on front end” the message series archive, which should just display a single Messages post type message category (ie. the new taxonomy i have created) is displaying the all messages page.

When I preview the “all messages” layout, it is displaying correctly.

What have I missed? Why is the message series archive displaying the wrong template?

Thanks,
Ashley

Hey @texaskiwi13,

I check your setup and the message category archive page is using the All Messages layout builder. In order for the message category to use the Message Series Archive layout builder, you need to change the priority from 0 to -1.

Please check this article for more information about priority.

Hope that helps.

fabulous! Thank you!!

Hey @texaskiwi13,

You’re welcome! If you have any other concerns or clarifications regarding our theme features, feel free to open up a new thread.

Thank you.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.