Skip Navigation

[Resolved] Cannot get archive to work with Enfold theme

This thread is resolved. Here is a description of the problem and solution.

Problem: I would like to create a custom archive PHP template for Enfold theme, and I would like to use Layouts to design the page.

Solution: Copy an archive template file from the parent theme into the child theme, following WordPress Template Hierarchy rules. Add the Layouts initialization code to the template:

if ( defined( 'WPDDL_VERSION' )){
  the_ddlayout( 'page-default' );
}

Relevant Documentation:
https://developer.wordpress.org/themes/basics/template-hierarchy/

This support ticket is created 6 years, 4 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
8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 - -
13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 - -

Supporter timezone: America/New_York (GMT-04:00)

This topic contains 6 replies, has 2 voices.

Last updated by anaK 6 years, 4 months ago.

Assisted by: Christian Cox.

Author
Posts
#1097423

I am trying to get the archives to work.. I've tried everything i've found in the forums.

hidden link

I would expect to see multiple items....

I struggled getting single.php to work I had to copy the file to child theme and renamed it single-gbcc-member.php and that worked...
I've tried the same with the archive but i've had not luck.

please help... I have been at this for a week now.
Thank you

#1097923
Screen Shot 2018-09-02 at 1.00.13 PM.png

Okay I logged in and looked at your setup, and the Layout applied to Member Archives did not have a WordPress Archive cell in it, so it wasn't looping over the results. I created a new Layout "TS Member Archive test" and added a basic WordPress Archive cell. Now the results are written into the page markup, but for some reason I don't understand yet there is a CSS style "visibility:hidden" applied to the results, so they don't show on the page. I'm attaching a screenshot here so you can see what I mean. If I disable the visibility:hidden CSS, the results are shown. Any idea why this would be happening? Maybe the page load animation?

#1097941

Thank you so much .... this has been driving me mad...

Now this looks like I need it to look hidden link (this is the non staging site)

so my next problem is the taxonomy archive... I copied the themes taxonomy archive to the child theme.. and renamed it
taxonomy-member-category.php

but the layout is not what I need it is just using the theme's layout. This is what I get
hidden link
I would like the layout so be same as the members...

Let me again thank you I really appreciate your help.

#1097978

Looks like the taxonomy member category PHP file doesn't include the Layouts code necessary to render a Layout. Check the member archive PHP file and you will find this:

    if ( defined( 'WPDDL_VERSION' )) :
            the_ddlayout( 'page-default' ); // Loads 'page-default' layout by default
    else:
    $tds =  term_description(); 
    if($tds)
    {
        echo "<div class='category-term-description'>{$tds}</div>";
    }

This the_ddlayout() function call must be added to your term archive PHP file as well if you want Layouts to be applied to that archive page.

#1098019

Hi Christian,

I am not seeing that code in the taxonomy member category PHP file and I am having a hard time figuring out where it goes..

can you help me.
Thanks again

#1099591

Try now, I made some changes in the PHP file.

#1100237

Thank you I see what you did now... I have a different issue now with the Maps and I will open a new ticket 🙂