Posted: May 21, 2019 at 12:19 pm
I have a footnote on my event list page that applies to certain events. Is there a way (other than simply entering an asterisk in the event title) to mark or flag certain events? For example there are certain classes that are entry-level and I’d like to mark those events in the list with an asterisk so that people know to look at the bottom of the list to read the footnote that applies to those types of classes. |
|
Hi there, As long as your theme isn’t doing something really strange, you can use the WP filter on For example:
Note that what that code does is first check if you are viewing the EE event post archive (the default After that’s it pulls a custom field from the event and if that is set adds ‘*’ to the end of the title. So for the list to show a * you need to set a ‘footnote’ custom field (you can change that in the code above if you want to use a different field) like so – https://monosnap.com/file/ZcFu5ysjcRyMzZPCr7lVb5uIZsAYYX That will output the event title like this – https://monosnap.com/file/b4aI6Ar4PZetlseyusfofmDOoLsMCs You can add the above to a You can add that to a custom functions plugin on your site, we have some documentation on creating one here: https://eventespresso.com/wiki/create-site-specific-plugin-wordpress-site/ |
|
One thing to note: If you use a shortcode to show your event list, like the table template, it will require some different PHP code to add the asterisk there. |
|
Ok, yes I am using a shortcode with the toggle template to display the list. |
|
So you’re using the EE4 Table view template with this shortcode?
|
|
Yes, i’m using |
|
In that case, you’ll make another edit to that template. In that template you’ll find:
Immediately following the closing
|
|
That’s perfect, thanks! I also added a class to make the asterisk stand out a little. |
|
The support post ‘place an asterisk or symbol next to event name on certain events’ 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.