HI,
Tell us what you are trying to do?
Every Custom Post / Custom Taxonomy Archive page in frontend is blank, even if populated in backend
Other Taxonomies shows regular content.
Is there any documentation that you are following? No
Is there a similar example that we can see? No
What is the link to your site?
FRONTEND
On this URL hidden link
Click on a "Produzioni" Term (Taxonomy of Azienda CPT) -> blank page
Try this other URL: hidden link (should display a list of "Azienda" CPT) -> blank
Try also other URL hidden link (should display a list of "Materiale" CPT) -> blank
Blog WP Category:
hidden link -> display results
Than I suppose it's something wrong with Custom Archive.
ADMIN
(Credentials moved to private reply)
Thanks in davance for you support,
Simone
Hello Simone and thank you for contacting Toolset support.
It seemed to me like a compatibility issue. Most probably the theme is not compatible with Toolset. In fact, I installed the 2021 theme and the archives worked. However, this has created some errors and I am not able to access the themes page(to switch back) or the archive templates. I am getting similar errors to this hidden link
I would need FTP access to investigate these issues and find out the real cause behind them. Your next reply will be private to let you share credentials safely.
Thank you for the credentials. I activated PHP debugging and I was able to recover the website and find out the cause of the issue. It seems that a function(sf_set_sidebar_global) is not declared when the archive template is loading. Check this screenshot hidden link
Because of the prefix "sf_", I would say that the function should come from the Swift Framework inside the theme. And I recommend that you reach out to the theme's support to help fix this issue once for all.
As a workaround, I have added the following snippet to the child theme's functions.php file, but it revealed that another function does not exists, check this screenshot hidden link
if ( !function_exists( 'sf_set_sidebar_global' ) ) {
function sf_set_sidebar_global(){}
}
So, I added another code to define that function too. But I got another error hidden link
So I added another code to define that function too, and I finally got the archive to render posts. Check this screenshot hidden link
The final code used is:
if ( !function_exists( 'sf_set_sidebar_global' ) ) {
function sf_set_sidebar_global(){}
}
if ( !function_exists( 'sf_breadcrumbs' ) ) {
function sf_breadcrumbs(){}
}
if ( !function_exists( 'sf_get_post_item' ) ) {
function sf_get_post_item(){}
}
Please reach out to the theme's support team for assistance. These errors are generated from the theme and there is nothing we can do from our side.
I hope this helps. Let me know if you have any questions.
Thank you Jamal, I'll try to contact Theme support.
My issue is resolved now. Thank you!