Support

Home Forums Events Calendar Add-on Which page from the plugin is used for the /events URL

Which page from the plugin is used for the /events URL

Posted: April 11, 2016 at 7:17 am


sachintaware

April 11, 2016 at 7:17 am

I want to update the URL /events to /events-list.Now when I hit /events I get broken content without any formatted HTML,I see the events but not with any correct formatting.
I have created a page under <b>themes->events->archieve-espresso_events and added my custom HTML code.I am trying to use shortcode ESPRESSO_EVENTS but I get a blank array even though I have 2 events from the dashboard.I use the short code in the following way.
<b> <?php print_r([ESPRESSO_EVENTS]); ?> </b>

Am I doing it right or I need to change the short code? Which default page from the plugin is used to show the events,so that I can directly add my HTML to it.
Very new to event espresso and WP so apologies for a naive question.


Garth

  • Support Staff

April 11, 2016 at 12:18 pm

Hi,

What version of Event Espresso are you using. With Event Espresso Regular (premium), we have a setting page where you can make that change very easily and save you a lot of time:

Event Slug Settings


sachintaware

April 12, 2016 at 1:07 am

Thank you for the prompt reply.The version is the latest one EE4.Sorry a personal project so can’t go premium.Could you guide me,how to achieve it in the regular installation? I am kind of stuck there. I want to first display the list of all events and then a detail page for each event.Even my short codes don’t seem to work as I mentioned in the question!


Tony

  • Support Staff

April 12, 2016 at 3:58 am

I want to update the URL /events to /events-list.

That’s the ‘slug’ and can be changed within the section Garth pointed out in premium. However changing the slug will not fix the problem.

Now when I hit /events I get broken content without any formatted HTML,I see the events but not with any correct formatting.

That’s most likely due to your theme, Event Espresso events are custom post types within WP (just like posts and pages) so your theme is used to output the lists, we just hook in at the right spot and inject our additional details.

/events/ is not a page, its an archive of Event Espresso events, that’s means it uses your themes archive template (if it has one, if not it will use index.php, which all themes have) Take a read through the WordPress template hierarchy. So changing the slug of the archive does not fix the problem.

The version is the latest one EE4

Whats the specific version number, including any suffix, for example 4.8.39.decaf?

< ?php print_r([ESPRESSO_EVENTS]); ?>

When you add a shortcode within the templates you need to use the do_shortcode() function:

echo do_shortcode('[ESPRESSO_EVENTS');

However, that’s now how you should be using the shortcode, and there should be no need within the archive-espresso_events.php template. Your events will be listed using the_loop using that template file.

It depends on how your theme is setup as to what you need to do but you need to understand the_loop and the template hierarchy when dealing with WP.

Is this a theme you have purchased or custom made?


sachintaware

April 12, 2016 at 5:07 am

The specific version is 4.7.13. Its a purchased one.I will try and update the results.I appreciate your response and help.Thank you


Lorenzo Orlando Caum

  • Support Staff

April 12, 2016 at 8:44 am

Hello,

You can see the other changes since your version here:

https://eventespresso.com/wiki/ee4-changelog/

The account that you are replying from does not currently have a support license on it. Could you check with a member of your team to see if there is another account that has a support license?


Lorenzo

The support post ‘Which page from the plugin is used for the /events URL’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Status: closed

Updated by  Lorenzo Orlando Caum 3 years, 7 months ago ago

Topic Tags

Notifications

This topic is: not resolved
Do NOT follow this link or you will be banned from the site!
[for="input_96_5_3"]
[for="input_96_5_3"]
[gravityform id=96 title=false description=false]
  • This field is for validation purposes and should be left unchanged.
[i]
[i]
[gravityform id=69 title=false description=false]
  • This field is for validation purposes and should be left unchanged.