Dear Luo,
Thank you very much - this structure is exactly what I had in mind .
Two questions
1.
As far as I understand it, the archive page is not related to a 'Toolset view' or to an 'Elementor template'? Where should I start digging in order to get rid of the sidebar and get it to look similar to the other archive pages, e.g hidden link
I have updated the 'wordpress archive' you created so the image is correctly sized and the text details are correct.
2.
As you will see, I changed the custom post type url - I had named it 'destination-cpt' to make it easier to keep track of the url and it is now just 'destination'. That is also the reason why the taxonomy name is 'property-destination-taxonomy'. Tried to rename it 'property-destination' but realised that updating the taxonomy url and change the code in 'functions.php' is not sufficient - where in addition do I need to update the code.
Is there anything I can do to help you help me?
Best regards / john
Hello,
Q1)
I assume we are talking about the URL:
hidden link
It should be in your theme file
hidden link
I suggest you copy theme file "archive.php" from parent theme folder "astra", save it into child theme folder "astra-child" as file name "taxonomy-property-destination-taxonomy.php", edit it, remove the PHP codes of sidebar
More help:
https://developer.wordpress.org/themes/basics/template-hierarchy/#custom-taxonomies
Q2)
I assume we are talking about the PHP codes in post:
https://toolset.com/forums/topic/the-views-are-not-doing-exactly-what-i-want-them-to-do/#post-1221376
As you can change the taxonomy slug in this line, from:
if ( ! is_admin() && $query->is_main_query() &&is_tax('property-destination-taxonomy') ) {
To:
if ( ! is_admin() && $query->is_main_query() &&is_tax('property-destination') ) {
More help:
https://codex.wordpress.org/Function_Reference/is_tax
$taxonomy
(string, array) (optional) Taxonomy slug or slugs