Jennyfer37
Forum Replies Created
-
Hi,
I’m trying to move over to using my Custom Fields created with ACF but using the above code returns no results.This is my code:
[display-posts post_type=”preschoolclass” meta_key=”class_days” meta_value=”Wednesday” include_excerpt=”true” excerpt_length=”20″ image_size=”thumbnail” wrapper=”div” wrapper_class=”display-posts-listing image-left” order=”ASC” orderby=”title” posts_per_page=”-1″]
The field is called “class_days” and it is a checkbox field.
Any thoughts about where I’m going wrong?
Thanks!
Hi,
Thank for the code – and so sorry it’s taken me so long to respond!
I’ve added the code to the function php file of my child theme – now my site search returns no results at all though (events or otherwise). Any thoughts?
Thanks
JennyJust to add, the Relevanssi forum suggested this:
Create a relevanssi_do_not_index filter function that removes the past events from the index.
add_filter( ‘relevanssi_do_not_index’, ‘rlv_remove_past_events’, 10, 2 ); function rlv_remove_past_events( $block, $post_id ) { $post_type = relevanssi_get_post_type( $post_id ); if ( ‘event’ === $post_type ) { // get event date somehow, and if it’s already past: $block = true; } return $block; }
Can anyone advise with how to get the date and if it’s already in the past? Would using scope=’past’ work? No clue with php at all…
Thanks
JenJust to add, the Relevanssi forum suggested this:
Create a relevanssi_do_not_index filter function that removes the past events from the index.
add_filter( ‘relevanssi_do_not_index’, ‘rlv_remove_past_events’, 10, 2 );
function rlv_remove_past_events( $block, $post_id ) {
$post_type = relevanssi_get_post_type( $post_id );
if ( ‘event’ === $post_type ) {
// get event date somehow, and if it’s already past:
$block = true;
}
return $block;
}Can anyone advise with how to get the date and if it’s already in the past? Would using scope=’past’ work? No clue with php at all…
Thanks
JenForum: Plugins
In reply to: [Relevanssi - A Better Search] Hide past events from searchHi,
Thanks for your reply – really appreciate it. I’m not sure what kind of code might be required or what to look for – a real php novice. Can you give me any hints at all?
Thanks
JenHi,
You can see it here on the submission form: https://www.thishitchinmummy.co.uk/submit-an-event
There’s a heading at the bottom about the “Submit” button saying “Event Styles” and I don’t know where it’s getting it from!
Thanks
Hi,
Loving the Grid View – awesome posts thank you!
Just trying to sort out display – have done everything as above but can’t get it to look good on my phone AND my laptop… Tried using % instead but not quite working.
What I’d like to achieve is 3 columns on a PC and 1 on a phone and for content to be cnetered (can’t work out how to do this either!)
Not sure the best way to go ahead so make grid look good on all devices – can anyone help?
Thanks for any help,
Jenhttps://www.thishitchinmummy.co.uk/events
- This reply was modified 7 years, 3 months ago by Jennyfer37.
Hi,
At the moment is a tag I want to exclude which I’m able to do on other pages but can’t work out how to do for default page that uses the formatting in settings to display all events at present.
Thanks
JenForum: Plugins
In reply to: [Events Manager - Calendar, Bookings, Tickets, and more!] Recurring event dayActually just realised it’s not working g how I would like – event link just takes you back to home page – any way to show recurrences grouped like this but link to next recurrence?
(Hope that makes sense – basically want a list of ongoing classes not just ones running next week/month etc so don’t want individual events just everything that runs on a mon/tue etc. There may be a better way than how I’m trying to do it?)
Thanks
JenHi,
I have a Custom Attribute called Booking Info and I’ve try the code above – not showing in my search form thought?
Thanks
JenI don’t see a tag number so used the tag name as shown:
[event_search_form pagination=1 limit=20 tag=”class” ]
I also included the tag in an events list as shown:
[events_list scope=”month” tag=”class”]
#_EVENTLINK
Dates : #_EVENTDATES
Times : #_EVENTTIMES
[/events_list]The tags work in the events list but when I search it still searches all events and takes me to https://www.thishitchinmummy.co.uk/events rather than results being displayed on the page where the listings are e.g .www.thisihitchinmummy.co.uk/test-classes
I’m using version 5.7.3
Thanks
JenBasically, I’m trying to replicate the search functionality of this page – happy not to have a grid view but would like to be able to search and filter classes on this page and events on a separate page:
https://www.thishitchinmummy.co.uk/pre-school-classes-and-groups-in-hitchin
Yes, that’s right – doesn’t seem to work with tags though…
Hi,
Thanks – tried it and it’s a bit strange. The search works ok but it keeps the original event list too… https://www.thishitchinmummy.co.uk/test-classes
Also, I had hoped not to use categories as I’m currently using those for type of event e.g. arts and craft, cinema etc. (I can’t see that you can search by Event Type on the search form?)
Perhaps I’m trying to do something impossible! Effectively I want two “events” pages both operating in the same way but with separate lists and separate search functions…
Thanks
Perfect, thank you!