Skip to main content

13 docs tagged with "php"

View All Tags

Adding Information to Events on Load

This tutorial forms part of our series of tutorials for creating an custom add-on for Events Manager called “Styles”, where we will be able to select from a list of styles during event registration. In our previous tutorial, we had added some php to save extra event information during event registration.

Create a Custom Placeholder for Event Formatting

This tutorial forms part of our series of tutorials for creating an custom add-on for Events Manager called “Styles”, where we will be able to select from a list of styles during event registration. In our previous tutorial, we added a custom field to the events search form.

Create Custom Event Information Pages

We're continuing our series of tutorials for our creating our own custom add-on called "Styles" by creating a custom page that will dynamically display a list of all available Styles and upcoming events associated with it. We had previously integrated our styles add-on with Events Manager's MultiSite Globlal Tables Mode.

Creating an Events Manager Add-On : A Complete Walkthrough

Warning: This series of tutorials was designed to help developers and designers learn how to make common modifications and understand some of the possibilities in Events Manager. We assume here that you already know your way around Wordpress and some basic knowledge of PHP.

Creating Conditional Placeholders for Events

In our previous tutorial in this series we created a custom placeholder for our "Styles" example add-on for Events Manager. We will now do something similar but with a very different purpose, add CONDITIONAL placeholders for our events.

Creating Custom Permalinks in Wordpress

This tutorial forms (the final) part of our series of tutorials for creating an custom add-on for Events Manager called “Styles”, where we will be able to select from a list of styles during event registration. We are in the process of creating custom styles pages, and now need to register permalinks as part of this step.

Every event its own color!

This tutorial applies to Events Manager version 3 downwards and is marked for revision. It is currently kept here for posterity and demonstrating how one can extend Events Manager in different ways.

How To Safely Add PHP Code To Wordpress

One of the best things about Wordpress is how easy it is to modify and extend with plugins and themes. Moreover, it lets you modify wordpress even further by letting you modify the modification that modifies wordpress! That's a lot of flexibility, and more than often leaves you with more than one approach to things. A common question is where to put small snippets of PHP that make small modifications to other plugins, such as Events Manager. There's three recommended ways, each have their pros and cons:

Integrating with MultiSite Global Tables Mode

We're continuing our series of tutorials for our custom add-on called "Styles" by taking a few more steps to make sure it is fully integrated with the MultiSite Global Tables mode in Events Manager. We had previously added a custom conditional placeholder for styles.

Modifying Placeholder Default Information

Some default placeholders can be directly modified with template files. However, since some placeholders require such small information, it's not worth making every bit of information require a template file.

Modifying the Event Calendar HTML

The event calendar, as with most other part of Events Manager, can be modified using template files. By adding a specific file to your theme folder which overrides the default calendar format, you can use the information passed on by Events Manager to generate the calendar to your exact specifications.

Overriding Event Page Content With Filters

When users access the events page, Events Manager decides what to show based on the rest of the URL. So, for example, `mysite.com/eventspage/locations/` or `mysite.com?p=x&locations_page=1` would return a list of current locations.

Using Additional Custom Taxonomies

Events Manager automatically makes any taxonomy associated with events or locations searchable/filterable using our shortcodes and PHP listing functions.