[Résolu] Archive into View into Layout into a page
This support ticket is created Il y a 7 années et 4 mois. 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.
No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.
Hello. Thank you for contacting the Toolset support.
So the first thing here is could you please try to place the "the_ddlayout" call outside the while loop code and check what is displaying and at least you get correct resutls.
<?php while ( have_posts() ) : the_post(); ?>
<?php endwhile;?>
Can I have access details of your site so that I can debug it further.
*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin and FTP) to your site. Preferably to a test site where the problem has been replicated if possible in order to be of better help and check if some configurations might need to be changed.
I would additionally need your permission to de- and re-activate Plugins and the Theme, and to change configurations on the site. This is also a reason the backup is really important. If you agree to this, please use the form fields I have enabled below to provide temporary access details (wp-admin and FTP).
I have set the next reply to private which means only you and I have access to it.
But how about the index page? Should I make a new question for that? I thought it was the same problem, but it turns out it isn't.
The post type Tjenester is going to be shown at index, but currently only the regular wordpress posts are beeing shown there. I have set up a layout with layout slug which should solve this problem. But it does not work... hidden link
You can’t do this trick with Views Archive cells using two layouts calls which is actually wrong. Views Archives and Views Archives cells are meant to correspond exactly to one single archive corresponding to the resource requested with $wp_query->queried_object because WP set a $queried_object at a time that might be a post a page and archive or category.
So what you should do is add one layouts archive cell and add another view cell to same layout to display your another post type content.
So solution would be for your layout:
<?php the_ddlayout( 'tjenester-index' ); ?>
You should add one archive cell to dispaly tjenester content and add another view cell to display prosjekter content.