Skip Navigation

[Resolved] getting events to list in date order

This support ticket is created 6 years 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 7 replies, has 3 voices.

Last updated by Christian Cox 6 years ago.

Assisted by: Christian Cox.

Author
Posts
#1165479
Screen Shot 2018-12-13 at 12.26.19.png

I am trying to: get the events listed in date order rather than post date order. I had the identical query on another site. Support topic can be seen here: https://toolset.com/forums/topic/views-event-list/

I've tried to implement the steps mentioned, however when I try and add the code , I can't activate the snippet as I get the warning: toolset_snippet_security_check() or die( 'Direct access is not allowed' );

#1165587

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hello,

Thank you for contacting our support forum.

You need to add this code


 toolset_snippet_security_check() or die( 'Direct access is not allowed' );

Before the add_filter() function.

This should then allow you to activate your code snippet.

Thanks,
Shane

#1167583

Hi,

I've added the code and I now get a: HTTP ERROR 500 error.

I've deactivated types/views and can access the dashboard. When I reactive it I can't access the dashboard anymore.

I've installed a fresh version of types/views and still have the same error.

Any thoughts?

Thanks

#1167936

Hi, Shane is on holiday this week but I'll be glad to take a closer look. Most likely there's a syntax error in that event-feed.php code snippet. As a test, please log in with FTP and go to /wp-content/toolset-customizations/ and rename the file event-feed.php to be event-feed.php.bak

Then you should be able to reactivate Types and Views in wp-admin. Test that out and make sure, then download the event-feed.php.bak file. Copy the contents and paste here for me to review. Do not upload a picture of the code as a substitute for copy+pasting the code, it's not as useful.

#1170604

Hi,

Thank you that's worked! I can now access the backend. One issue I'm still having is getting the events date order displaying correctly. What is the shortcode for the event date, as opposed to the post date?

Many thanks for your helps so far.

#1170725

One issue I'm still having is getting the events date order displaying correctly.
Can you show me this problem on the site? Where can I find it?

What is the shortcode for the event date, as opposed to the post date?
If I'm not mistaken, the event date is managed by The Events Calendar plugin. I'm not sure how to display their event date information with shortcodes. I suggest checking their support area here https://theeventscalendar.com/support/

#1171201

My views layout is as follows, no posts are displaying currently:

[wpv-layout-start]
[wpv-items-found]
<!-- wpv-loop-start -->
<wpv-loop>
<div class="event-card-container">
<div class="event-image">[wpv-post-featured-image size="medium"]</div>
<div class="event-content-box">

<div class="event-title">[wpv-post-title]</div>
<div class="event-date">[tribe_formatted_event_date format="d/m/Y" timezone="Europe/London"]</div>
<div class="event-description">[wpv-post-excerpt length="300" more="..."]</div>

<div class="event-category"><img class="alignnone size-full wp-image-75" src="hidden link" alt="" width="750" height="135" /></div>

<div class="w-btn-wrapper width_auto align_center"><style>@media(max-width:600px){.us_btn_1{font-size:16px!important}}</style>Read More</div>

</div>
</div>
</wpv-loop>
<!-- wpv-loop-end -->
[/wpv-items-found]
[wpv-no-items-found]
[wpml-string context="wpv-views"]No items found[/wpml-string]
[/wpv-no-items-found]
[wpv-layout-end]

#1171975

I need to know where I can find this View on the front-end of your site to see the problem. When I check in wp-admin, I only see one published View (#2997) and the content scanner says this View is not displayed anywhere on the front-end of site. Where are you looking when you say "no posts are displaying currently"?