Epco
Forum Replies Created
-
Forum: Plugins
In reply to: [Theater for WordPress] option to use other sizes of featured imageHi Jeroen, have you implemented this? I don’t see anything about it in the shortcodes and I tried the suggestions you mention in the ticket, but to no avail.
apart from the slider, I would like to have the option to use a bigger picture for the feature of today by using something like thumbnail(‘full’).Forum: Plugins
In reply to: [Theater for WordPress] [wpt_productions]{{dates}} emptyHoi Jeroen,
Sorry, ignore that. Yesterday I saw this happening all of a sudden (just in the middle of a movie festival), but now it’s fine again. Probably another plugin causing havoc… I had one which also adjusted user group rights, not sure if it was the same..
I thought the same at first, but with events with an ism code there is no div.wp_theatre_prod_ism, only a div.wp_theatre_event_ism with the content.
Adding it within the filter would be better indeed, now the I.s.m. is no content (you can’t search for it, because it is styling). But by using CSS I can use a different abbr for the English page (In collaboration with, aka I.c.w.). Doing that in functions would be more of a challenge, I think.
And in that case the function should also check if the tag has content or not. But now it works generally, making a div for every field in the code, with possible empty divs.Sure, see for example the hiden, public page https://moview.nl/test
I’ve added the code in the page (adjusted so it will not be rendered).
It’s basically a testpage used for testing configs of theaterHi Jeroen,
the above worked fine adding a {{thema}} and {{ism}} to every production, but with version 10.2 (maybe 10.1, I’m not sure) for every event with an empty (production) {{ism}} field I get:
<div class="wp_theatre_event_ism"><div class="wp_theatre_prod_ism"></div></div>
For events with a value for {{ism}} I get (as suspected):
<div class="wp_theatre_event_ism">'t Venster</div>
Before I got an empty div with only the wp_theatre_event_ism class for events.Because I use CSS
wp_theatre_event_ism:not(:empty)::before, wp_theatre_prod_ism:not(:empty)::before
to add the ‘I.s.m.’ before the value, I now get single I.s.m. for events without a {{ism}} value.Do you have an idea how this happens? For now I’ll just remove the {{ism}} from the displaycode.
Forum: Plugins
In reply to: [Theater for WordPress] 0.10 shows oldest events in theater event widgetGreat, that fixed it! ??
Forum: Plugins
In reply to: [Theater for WordPress] week optionHi Jeroen,
We partly use wpt_events but also wpt_productions (mostly to prevent a list of 4 exact identical events with only the date differing). Could the start and end options also be made for production views?
Apart from that (although this would better be in a separate request) is it possible to adjust the date for productions to have more display options, like:- from tue 12 Nov to mon 16 Nov
- tue 12 Nov, sat 14 Nov and mon 16 Nov
- or even tue 12 Nov 20:30, sat 14 Nov 16:00 and mon 16 Nov 16:00 and 20:30
We now sometimes show a movie only twice, but with more than a week in between. Stating that the movie plays from first event to last event is a bit awkward then.
adding that gave the following:
Warning: Missing argument 2 for my_wpt_event_classes() in /home/moviewnl/domains/moview.nl/public_html/wp-content/themes/filmhuis/functions.php on line 6 Fatal error: Call to a member function categories() on a non-object in /home/moviewnl/domains/moview.nl/public_html/wp-content/themes/filmhuis/functions.php on line 7
<div class="wp_theatre_event special NFF">..</div>
where special and NFF come from {{categories}}.
Or with[wp_events class={{thema}}]
would give<div class="wp_theatre_event name_of_thema">..</div>
I have added two extra fields, ‘thema’ and ‘ism’ (in English it would be ‘theme’ and ‘icw’ (for ‘in collaboration with’), but now I can only add them as an extra div inside the wp_events div:
<div class="wp_theatre_event"> <div class="wp_theatre_prod_thema">Documentaire</div> <div class="wp_theatre_event_date">eventdate</div> <div class="wp_theatre_event_time">eventtime</div> <h3><div class="wp_theatre_prod_title"><a href="permalink">title</a></div></h3> <div class="wp_theatre_prod_ism">Stichting Otherwise</div> <p class="wp_theatre_prod_excerpt">excerpt</p> </div>
If I could make it like
<div class="wp_theatre_event Documentaire">..</div>
I would be able to adjust the looks of wp_theatre_event itself (things like borders, background,…) , which is now impossible.Suppose you have a list of events and you would like to give the shown categories a different background color (like green for stand up comedy, red for drama, …). It would actually work better with extra fields, with categories you would get a ul inside of class, or you would have to adjust the code to prevent that. But on the other hand that would be an extra field to fill likely containing the same info as categories has.
So for short a way to add a custom field as class to an event (or production) would be helpful, but I think a possibility to add the different categories as classes would even be better.
Forum: Plugins
In reply to: [Theater for WordPress] option to use other sizes of featured imageHi, as mentioned before, I think Kwicks (https://devsmash.com/projects/kwicks) would be a good option because it only needs a container (div, ul) with the classes .kwicks and (depending on choice) .kwicks-horizontal, apart from a small custom script in which you define the variables.
In my case I would like to use the horizontal carousel on my homepage, but maybe also a possibility to use slideshow for all photo’s and (optionally) youtube/vimeo trailer contained in a production post (by putting them all in one container).
Forum: Plugins
In reply to: [Theater for WordPress] week optionyup, that would do the trick. ??
Forum: Plugins
In reply to: [Theater for WordPress] option to use other sizes of featured imageYes, that would be fine.
By the way, there’s an overwhelming amount of slider and carousel plugins for WordPress, but most can’t handle post_types, let alone use some other selection than post date. Do you know one which can not only use post_types (like wp_theatre_prod) and use chronological event dates? I was trying to get Kwicks (just the js) working, but it needs hardcoded classes added (kwicks, kwicks-horizontal) to the wpt_listing container (using whatever div or li is within this container as slides. Compared to a lot of others (who need also classes for every slide) this seems like a nicer approach, but not usable with a [wp_events] ( at least not by me… Too much adjustments needed in the js).
Sorry if this is too much oot…Forum: Plugins
In reply to: [Theater for WordPress] short date in widgetGreat, that fixed it! ??
Forum: Plugins
In reply to: [Theater for WordPress] short date in widgetHi Jeroen,
Great, but implementing it gave me some unwanted behaviour. Is it limited to datetime or can it also be used for date? The first adds the same ‘Thu – Wed 3’ (marks the ‘ !) for all dates, using it with date (which seems to work too, but giving a similar problem) gives ‘Thu 1’ everywhere.
Furthermore the site is a Dutch version of WordPress, but your code gives English days.
See for example https://moview.nl. On the pages Programma I have the standard date of WordPress (modded to ‘D j M’ and truncated through CSS, a bit ugly but gets the job done), on the pages English and subpage Programme I have your code added to the Theatre Events widget.PS. I emailed you but thought it would be handier to post it here as well.
Forum: Plugins
In reply to: [Theater for WordPress] short date in widgetOk,
No, don’t know how. (Still quite new to WP)
Could you give some good link to a tutorial for it? I like to learn instead of just copiing some magic code… ??Thanx