Questions tagged [events]

The tag has no usage guidance.

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

Can't see past events on admin dashboard

Wordpress admin dashboard only shows the current and upcoming events, but there's seemingly no way to access the past events through admin dashboard. The event page on admin dashboard (wp-admin/edit....
user avatar
  • 1
0 votes
0 answers
37 views

How to update ticket price programatically when adding to cart and checkout in woocommerce

I am using events ticket plus plugin and i have created events ticket but for some reason i need to update the price of a ticket when adding to cart and checkout page. I have used this code. ...
user avatar
1 vote
0 answers
154 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 ...
user avatar
  • 115
0 votes
1 answer
45 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 ...
user avatar
1 vote
1 answer
23 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 ...
user avatar
  • 11
0 votes
2 answers
71 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&...
user avatar
  • 3
0 votes
0 answers
19 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 ...
user avatar
1 vote
0 answers
39 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 ...
user avatar
  • 143
1 vote
0 answers
46 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. ...
user avatar
  • 11
1 vote
2 answers
864 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()"&...
user avatar
  • 11
0 votes
1 answer
71 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 ...
user avatar
  • 1
1 vote
1 answer
904 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 ...
user avatar
0 votes
1 answer
123 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 ...
user avatar
0 votes
1 answer
82 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 ...
user avatar
  • 1
1 vote
0 answers
22 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,...
user avatar
  • 133
0 votes
1 answer
20 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', ...
user avatar
  • 1
0 votes
1 answer
275 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 ...
user avatar
  • 101
1 vote
2 answers
1k 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 ...
user avatar
  • 1,904
0 votes
1 answer
23 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 ...
user avatar
0 votes
0 answers
763 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 ...
user avatar
-1 votes
1 answer
23 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 ...
user avatar
1 vote
2 answers
1k 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, ...
user avatar
  • 534
0 votes
1 answer
1k 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 ...
user avatar
  • 13
0 votes
0 answers
229 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 ...
user avatar
  • 115
0 votes
1 answer
46 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 ...
user avatar
  • 534
0 votes
1 answer
48 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 ...
user avatar
-1 votes
1 answer
44 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 ...
user avatar
0 votes
1 answer
27 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 ...
user avatar
1 vote
0 answers
803 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 (!...
user avatar
  • 638
1 vote
2 answers
575 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. ...
user avatar
2 votes
1 answer
870 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 ...
user avatar
  • 55
0 votes
0 answers
660 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="/...
user avatar
1 vote
1 answer
197 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 ...
user avatar
2 votes
1 answer
744 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
user avatar
  • 35
0 votes
1 answer
61 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 ...
user avatar
-1 votes
1 answer
6k 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 ...
user avatar
0 votes
1 answer
4k 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: $( ...
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="...
user avatar
  • 177
1 vote
1 answer
60 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 ...
user avatar
0 votes
1 answer
486 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 ...
user avatar
  • 1
4 votes
2 answers
1k 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 ...
user avatar
5 votes
1 answer
2k views

How to capture the selection:toggle event fired by wp.media

I can't figure out the proper syntax for listening in on this event. I just don't know where it exists. I know that this is the name of the event because I'm logging every single wp.media event using ...
user avatar
  • 321
0 votes
1 answer
401 views

How to populate a Mailchimp newsletter with latest events from Wordpress plugin EventOn?

Once a month I send a newsletter with upcoming events. I also publish all the event on a wordpress site with EventOn. I was wondering if there is a way to import the latest events in a mailchimp ...
user avatar
  • 3
6 votes
2 answers
5k views

trigger save_post event programmatically

Is there a way to trigger the post saving or updating event in code? such as do_action('save_post', $post_id); The function here seems to imply that a WP_POST object needs to be passed in. Is there a ...
user avatar
0 votes
2 answers
82 views

Upcoming events

i', try added to my site upcoming events, but when i try add via get_post_meta - not working, for example: http://prntscr.com/exe8oi i added date, then i use this my code: <?php $today = date('U')*...
user avatar
0 votes
1 answer
152 views

connect users to Custom post types

I’ve created a Custom Post Type to manage Events and now, i would like the users of my site (only registered ones) to be able to register to any events created. On the events page, they would just ...
user avatar
1 vote
2 answers
2k views

Event-Driven Pattern vs MVC?

In general terms what is it that the MVC framework differs from Event Driven Pattern? Is it even comparable? eg.: Codeigniter vs Wordpress I mean while Codeigniter uses MVC it "watches" the Model/...
user avatar
0 votes
2 answers
31 views

Add option in th event calendar

I have a stuck that make me headache so much, as you see picture, this is my result when i add option to event. I'm updated code in: wp-content/theme/mytheme/lib/metabox/function.php $meta_boxes[] = ...
user avatar
0 votes
0 answers
436 views

Asynchronous emailing

Whenever a user performs an action involving sending out email notifications, it takes a long time to process and therefore the user must wait a few seconds until the resulting page is loaded. As a ...
user avatar
  • 209
0 votes
1 answer
67 views

Hourly events don't get triggered

I'm trying to check do an action in my wp plugin each hour, but it does not work fine. I'm doing this: register_activation_hook(__FILE__, function() { //more stuff if (! wp_next_scheduled ( ...
user avatar