Support

Home Forums Event Espresso Premium "No configuration section has been provided" when using Post Content in Archive

"No configuration section has been provided" when using Post Content in Archive

Posted: November 26, 2019 at 7:57 am


kubus

November 26, 2019 at 7:57 am

Hi EE-experts!
Problem:
When trying to display all events on the events archive page, we get a

Setup:
EventEspresso 4.10.2.p
Astra Pro 2.1.2
Elementor 2.7.5
Ele Custom Skin 1.3.8
LearnDash 3.0.7.1

Details:
We build a page on the Astra Theme together with Elementor. For displaying Learning Courses we use LearnDash’s archive page on on a custom Elementor Template. The Ele Custom Skin enables us to even design the look & content of its archive items / posts through “loops”. This works perfectly for the LearnDash courses.
However for the Event Espresso Archive it ONLY works if I DON’T use the “post content” in the loop (e.g. archive items consisting of their post image & post title would let the events archive page display totally fine). As soon as I drag in the Post Content widget from Elementor, that is used for displaying the content of the archive item (event itself), I get this error message.

Why are you doing this?
We want to make sure that the learn courses page and events page look the same. Thus we are using custom archive templates from Elementor and custom “loop templates” (how a single archive item should look like) for these two pages.

What we’ve tried
Besides tracking down the error to the Post Content widget, that displays the events content which somehow resolves into this strange error, we also tried the common fix to change the slugs name from “/events” to something else and resaved the permalinks. Did not work.

Thank you for any help on this!


Josh

  • Support Staff

November 26, 2019 at 9:07 am

Hi,

Can you outline the exact steps to replicate the error?

The reason I ask is because I tried this by installing the Elementor Custom Skin plugin, then followed its documentation to create a custom loop template to show Event Espresso events, including the post content. Then I created a page and used Elementor to set that loop on a page. It all displays without errors though.

Maybe there’s a step I’m not aware of that would cause the issue you’re seeing, and if you can outline the steps we can investigate further.


kubus

November 28, 2019 at 2:39 am

Dear Josh, thank you for taking the time to test this setup yourself. This is really much appreciated!

The error seems to arise as soon as you try to use the archive page of events from EE. Like you said “I created a new page” now and added the Elementor “posts” widget in which I can select the custom loop for displaying EE events. This now totally works. Error only appears when you try to use the EE /events page, even I already use a custom “slug” for this page like recommended.

Nevertheless creating a new page solves this error, thank you for pointing me into this direction!

What still is a problem: I cannot display the date & time of the event in these loops. I can use ACF, date of creation of the event, author and so on. Is there a shortcode I could use?

I can’t use the standard EE grid and must use loops for this, since they need to look the same as our courses for LearnDash which we also show by displaying these loops. Could I somehow display information about date & time of the courses in a custom location except for the course content where it appears normally.

As I said, a huge thank you for your help so far and your time Josh!


Josh

  • Support Staff

November 28, 2019 at 8:44 am

You can add a shortcode by adding a little bit of PHP. First, you add this to either the theme’s functions.php or into a site specific plugin:

add_shortcode(
    'ee_event_date',
    'my_ee_event_date_shortcode'
);
function my_ee_event_date_shortcode() {
    $content = espresso_next_upcoming_datetime(
        '',
        '',
        get_the_ID(),
        false
    );
    return $content;
}

Then in your loop template item, you’ll then be able to use this shortcode:
[ee_event_date]

You must be logged in to reply to this support post. Sign In or Register for an Account

Support forum for Event Espresso 3 and Event Espresso 4.
Documentation for EE3 and EE4
Documentation for Event Espresso 3

Documentation for Event Espresso 4

Status: publish

Updated by  Josh 2 weeks ago ago

Topic Tags

Notifications

This topic is: not resolved
Do NOT follow this link or you will be banned from the site!