Skip to main content

Questions tagged [events]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
24 views

Event: when theme swapped

I want to do some clean-up when my theme is changed out: unregistering cron jobs and other theme-specific things. I've been trying to look for an event that fires when my theme is being swapped out (...
Fluxian's user avatar
  • 180
0 votes
0 answers
52 views

Start a long running PHP process via JS/Ajax and monitor progress on admin page

I am developing a plugin, which can import layouts for a certain theme from a remote URL. Those layouts often contain a good amount of images and sometimes even videos. I have a admin page where the ...
xxtesaxx's user avatar
  • 101
1 vote
0 answers
33 views

Need to build a community membership and event/ticketing system

Over the years I have worked a bit with Wordpress, but have been more of a custom code developer. I feel that Wordpress is the right framework for my solution but need help with identifying plugins ...
Arthur Frankel's user avatar
0 votes
0 answers
13 views

I am trying to implement some logic on real time order sync using scheduler

I am trying to call a function using the scheduler, wp_schedule_single_event, it is successfully scheduled but the function related to the hook is not called.
Kapil Sharma's user avatar
1 vote
1 answer
69 views

How to export native WordPress events in a form useful to Events Calendar

I have over 100 events in plain, vanilla, native WordPress events; they came from a Drupal conversion using FG Drupal to WordPress plugin. I’m not talking about Events Calendar events, Events Manager ...
D Mac's user avatar
  • 111
1 vote
1 answer
45 views

How to compare Event period with Week period using get_posts(), meta_query, relation and compare

I have many posts, each post is an event with a period . This period can be 3 hours, 3 days, 15 days, 3 month. I defined the start time of event with start_timestampevents and the end with ...
imagIne's user avatar
  • 105
0 votes
1 answer
113 views

Detecting whenever a user types - in the Gutenberg editor, and checking if there is a preceding or succeeding - then converting both to an em dash

I'm having quite a lot of trouble trying to hook an event listener to WordPress's Gutenberg Editor. There is very little documentation on this, and ChatGPT doesn't give very good answers too. What I ...
John Doe's user avatar
  • 287
0 votes
1 answer
25 views

How to write a plugin that "listens" every time, an edit occurs?

Let's say I want to write a plugin that replaces (i.e.: overwrites) every src-tag of every iframe-element on a WP-Website with a custom string AND the plugin shall watch every new post or page-edit ...
mdthh's user avatar
  • 103
0 votes
1 answer
92 views

How to print different informations for different post types inside The Loop?

I have a homepage that is mixing two post-types : post and events My aim is to print the details of each event in order to differentiate the content. This is the method that I used to mix posts and ...
Gadget's user avatar
  • 3
0 votes
1 answer
212 views

The Events Calendar, wp_query returning event date not published date

I am using The Events Calendar (https://theeventscalendar.com/) I am running a custom WordPress loop, and looking to display the published date for each event. Inside the loop, I am using the_date();. ...
McFarnell's user avatar
0 votes
1 answer
118 views

Catching Gutenberg sidebar switch event

I'm working on a plugin with Gutenberg integration. I registered a plugin in React, and my sidebar is showing and working fine. But I need to perform an action each time my sidebar is showing up. I ...
mWin's user avatar
  • 136
2 votes
0 answers
857 views

WooCommerce event works in jQuery but not in JavaScript

I'm using WooCommerce hook added_to_cart which works perfectly in jQuery, but doesn't work in vanilla Javascript. Both functions are running on document loaded. Here is my code reference: JavaScript ...
Alexander's user avatar
  • 143
0 votes
1 answer
103 views

Is there a way to know when a page has been updated and do some action only once?

Have few pages in wordpress cms. Whenever any page is published or updated, there is need to do some action (basically call an API to update some data in another backend service). For publish, I am ...
Sunil Chaudhary's user avatar
1 vote
1 answer
155 views

CPT EVENT - listing by month and filtering by category and month - form select option

I am creating custom post type eventlist filter form. There is two options: category and months. Following this advice List events by month I got display event categories by month. Meaning... January ...
Sebu's user avatar
  • 11
0 votes
2 answers
275 views

Pass argument to event hook

How do I pass arguments to my hook function? my_function($arg1, $arg2){ echo $arg1 . " " . $arg2; } add_action( 'init', 'my_function'); If I want my_function to echo "hello world&...
Vivian's user avatar
  • 3
0 votes
0 answers
32 views

How to Create Events Calendar

How onthisday.com has been made? I'd want to make something similar. I guess I need to have a database with some events happened in a day (6 february 2021, 6 february 2020, 6 february 2019 ... 6 ...
isshmen's user avatar
1 vote
0 answers
80 views

List of JS Events for Widgets?

Does anyone know if there's a list of all JavaScript events for widgets? I know there are other lists (e.g. Woocommerce; wp.media) but I'm looking for one specifically for widgets. It took me a bit of ...
DaveyJake's user avatar
  • 141
1 vote
0 answers
80 views

Update a costume wp_usermeta key back to 0 every 24hours (time can be specified as needed)

I'm new around here but I will do my best to get the question out as clear as possible. I'm developing a website where users will be able to publish portfolio items from the front-end of the website. ...
Lima's user avatar
  • 11
1 vote
2 answers
2k views

Calling plugin function inside custom plugin for onclick event

I want testFunction() to call check() that i created in my plugin php when i click My Button. How do i make it work ? <?php function createButton() { echo '<button onclick="testFunction()"&...
Kitiara's user avatar
  • 111
0 votes
1 answer
111 views

How To Remove “All, Publish, Draft and Expired” in Events Dashboard

I have been looking for ways to completely remove the All, Publish, Draft and Expired events for USERS other than the me, the Administrator. So the scenario for me is: I have registered users. When ...
busy's user avatar
  • 1
1 vote
1 answer
2k views

Why is wp-cron only executing on page visit?

As I have understood wp-cron runs after a HTTP-Request to the given domain. Can someone explain to me why this is the case? I don't quite understand why the execution of (scheduled) wp-cron events are ...
CorinLUSI's user avatar
0 votes
1 answer
278 views

Sort custom post type by most current date picker

I'm trying to sort custom post type made with ACF plugin by most current date. Ideally future most current post should be first. Currently, I'm sorting by date, which gives me the earliest post as the ...
ivan marchenko's user avatar
0 votes
1 answer
203 views

Creating new page overwrites old page

Every time we add something new, it deletes a previous entry, like its replacing it. Happened with blogs a few weeks ago then sorted itself out, now it is happening with events. Does anyone know why ...
KbCb's user avatar
  • 1
1 vote
0 answers
24 views

Events plugin for irregular / complex events [closed]

I have been using the Events Manager plugin, and I like it for the most part. However, I have a client who runs events in a very specific way. Events are (nearly) always on Friday, Saturday and Sunday,...
3x5's user avatar
  • 133
0 votes
1 answer
37 views

Group the events post in month+year format?

How to print upcoming events in the below format. June 2019 Trala Lala Wala May 2019 Trala Lala Wala my args array is $arg = array( 'post_type' => 'events-promotion', ...
soofz's user avatar
  • 1
0 votes
1 answer
489 views

Events Manager: Create custom Placeholder for use in Email notification

I have written a function (child-theme; functions.php) for the plugin Event-Manager in Wordpress. This function reads values out of custom input fields and saves those in the databse. I would like to ...
Daniel's user avatar
  • 101
1 vote
2 answers
2k views

Trigger background job using AJAX

I need a second opinion and a sanity check if the solution I'm trying to implement will work. I need to implement a way to run a script that would otherwise be blocking if I would run it using just ...
dingo_d's user avatar
  • 1,960
0 votes
1 answer
27 views

Ordering of posts, 2020 Year showing as next event when should be last

We have some event posted into wordpress which are ordered by date. All works well except when we enter an event for 2020 it comes at the top of the list rather than the bottom. The date is save in ...
Tom Mills's user avatar
0 votes
0 answers
1k views

How do I add this OnClick event script to a custom button I’ve created?

I’ll start by saying (and it will probably be obvious) that I’m not very experienced in html or php coding. I’m learning some things as I’m creating this website, but I’m stumped with this one. I’m ...
Bliss Conglomerates's user avatar
-1 votes
1 answer
25 views

Can a woocommerce hook alter the UI of a website?

I was wondering if there is a way to make a woocommerce hook that alters the UI of a website. For example, if a user wants to purchase an item it should provide the option of paying with "website ...
Kamal Salah's user avatar
1 vote
2 answers
2k views

How to display upcoming events by dat with Modern Events Calendar Lite

I'm using the plugin Modern Events Calendar Lite. This is a recent plugin, so actually no doc exist. So i'm looking a way to display my upcoming events on homepage. But i can not make it to work, ...
Gregory's user avatar
  • 602
0 votes
1 answer
2k views

Primary navigation menu with timed items from custom post type

I have created a site (livermorevalleyopera.com) for a client. I made a custom post type for events. In the primary navigation I have a top level menu item "Season Events & Tickets" and the ...
Ryan's user avatar
  • 13
0 votes
0 answers
365 views

profile_update hook does not fire from front-end

I'm using BuddyPress to allow users to log in on the Front end. Once logged in, they can click on 'My Account'. On this page they can upload avatars, edit their account information, etc. When I ...
Scratcha's user avatar
  • 115
0 votes
1 answer
69 views

Should i use a plugin for Event Manager or code my own needs? [closed]

I own a local guide on wordpress, with already many CPT like "hotels, bnb, markets, etc..." all those CPT are linked by relational field to a city. ( city is CPT as well ) Now, i wish to add a EVENT ...
Gregory's user avatar
  • 602
0 votes
1 answer
54 views

Permalinks don't update nor link properly

I'm using Events Manager and WPML for my WordPress site. I have changed the permalinks formatting from the default /?p=123 to use the article name. So, for example, let's say that I want to link from ...
Krullmizter's user avatar
-1 votes
1 answer
57 views

WPML & Events Manager translatable fields after duplication

I have created a WordPress site with WPML and Events Manager together. I want to create events in a language and then translate it to my second one. That's easy but I can't seem to find where I change ...
Krullmizter's user avatar
0 votes
1 answer
43 views

how can create carousel for posts that will be published a month later?

I have WordPress theme, which is consist of many published post (some of them expired and some of them not published so far). Each of These posts scheduled by start (published on) and expiration (Post ...
moha. li's user avatar
1 vote
0 answers
1k views

Wp_schedule_event functions.php

I am using this code in my functions.php which works fine. However, I was wondering if this is the best practice to do so to schedule an event, or if there is a better solution. if (!...
JoaMika's user avatar
  • 688
1 vote
2 answers
1k views

How to select events within current week using wp_query

I'm trying to create an events page that lists events (custom post type) within the week. I'm having trouble properly selecting only the posts that have a 'start_date' that falls in the current week. ...
BudBroesky's user avatar
2 votes
1 answer
1k views

WP_Query meta_query results date by date

Don't leave! This isn't another question about how to orderby meta_value! I have a post type called events, and each post I create has a meta field I imaginatively called event_dates_wp which accepts ...
PUncle's user avatar
  • 75
0 votes
0 answers
859 views

iFrame onLoad in custom Gutenberg block

I have this code that I am trying to rewrite for Gutenberg block: <script type="text/javascript"> <iframe onload="javascript:resizeIframe(this);" src="/...
ivanacorovic's user avatar
1 vote
1 answer
242 views

Events Made Easy Plugin - Duplicate Title Tags

I use the Events Made Easy plugin to handle events for a client. Recently while scanning my site for issues, I noticed that I'm getting blasted with duplicate title tags in the "events" pages as they ...
ben.kaminski's user avatar
2 votes
1 answer
986 views

1 day after custom date change post status to draft

1 day after koncerter_start_date all posts with custom-post-type koncert have to get the status draft
Mathias's user avatar
  • 35
0 votes
1 answer
85 views

EventON - Dequeue Styles

I'm working on a website currently where I'm being asked to style the event pages. The events are being handled by EventON and I'm having a ton of trouble trying to override any styles they have in ...
jtomeck's user avatar
0 votes
1 answer
7k views

How to fire jQuery after $(window).on('load')

I have a WordPress page that is built using elementor page builder in which I display 'flipbooks' (pdf viewers) using a plugin called responsive flipbooks. The flipbooks are made responsive by a ...
Rob Teeuwen's user avatar
0 votes
1 answer
5k views

Execute jQuery with custom event listener after successfully add an item to the cart

This is my first post, so please be gentle. I'm already successfully executing some jQuery codes in my woocommerce cart-page after updating the item quantity (Ajax) with the following code: $( ...
evavienna's user avatar
  • 131
0 votes
2 answers
1k views

How to add onclick event to widget image

I have added a custom url to the widget image in the new WP 4.9. Now I want to add an onclick event to the link. The a tag looks like this <a href="http://domain.com/this-is-a-page" class="" rel="...
WendiT's user avatar
  • 177
1 vote
1 answer
71 views

WordPress Scheduled Event Request Blocking

This is a question about WordPress architecture, that I wasn't able to fully understand by reading WordPress documentation. I have a scheduled event that can take more than 1 minute to finish because ...
Adriano Castro's user avatar
0 votes
1 answer
600 views

Display only upcoming events / Show all events when archive year is selected

I'm working on a wordpress site that will query only upcoming events (custom post type). I've figured out how to only display upcoming events but I would like to allow users to view Past Events when ...
GWP INC's user avatar
4 votes
2 answers
2k views

Manipulate post category after time

After reading several posts regarding post category manipulation with a given time I wanted to create a plugin that would manipulate posts after a date. My original post reference is from six years ...
user9447's user avatar
  • 1,782