Title: royaltask's Replies | WordPress.org

---

# royaltask

  [  ](https://wordpress.org/support/users/royaltask/)

 *   [Profile](https://wordpress.org/support/users/royaltask/)
 *   [Topics Started](https://wordpress.org/support/users/royaltask/topics/)
 *   [Replies Created](https://wordpress.org/support/users/royaltask/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/royaltask/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/royaltask/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/royaltask/engagements/)
 *   [Favorites](https://wordpress.org/support/users/royaltask/favorites/)

 Search replies:

## Forum Replies Created

Viewing 15 replies - 1 through 15 (of 42 total)

1 [2](https://wordpress.org/support/users/royaltask/replies/page/2/?output_format=md)
[3](https://wordpress.org/support/users/royaltask/replies/page/3/?output_format=md)
[→](https://wordpress.org/support/users/royaltask/replies/page/2/?output_format=md)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Translate WordPress - Google Language Translator] Why is an image from www.gstatic.com loading on every page](https://wordpress.org/support/topic/why-is-an-image-from-www-gstatic-com-loading-on-every-page/)
 *  Thread Starter [royaltask](https://wordpress.org/support/users/royaltask/)
 * (@royaltask)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/why-is-an-image-from-www-gstatic-com-loading-on-every-page/#post-17770241)
 * I tested gtranslate today: Unfortunately not. It loads resources from gstatics
   if hovering the flags language selector (no click! just hover). This needs to
   be fixed! eg: [https://www.gstatic.com/images/branding/googlelogo/1x/googlelogo_color_42x16dp.png](https://www.gstatic.com/images/branding/googlelogo/1x/googlelogo_color_42x16dp.png)
    -  This reply was modified 2 years, 1 month ago by [royaltask](https://wordpress.org/support/users/royaltask/).
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Custom Widget Creator] Link JS](https://wordpress.org/support/topic/link-js/)
 *  [royaltask](https://wordpress.org/support/users/royaltask/)
 * (@royaltask)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/link-js/#post-17214707)
 * this would be great!
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [[Qi] How to setup a side area](https://wordpress.org/support/topic/how-to-setup-a-side-area/)
 *  Thread Starter [royaltask](https://wordpress.org/support/users/royaltask/)
 * (@royaltask)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/how-to-setup-a-side-area/#post-17152207)
 * Thank you so much! I will test.
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [[Qi] Sticky menu full width on boxed width template](https://wordpress.org/support/topic/sticky-menu-full-width-on-boxed-width-template/)
 *  Thread Starter [royaltask](https://wordpress.org/support/users/royaltask/)
 * (@royaltask)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/sticky-menu-full-width-on-boxed-width-template/#post-17147400)
 * Thank you. Looks better now 😉
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WP Event Manager – Events Calendar, Registrations, Sell Tickets with WooCommerce] Remove (not delete) posting on the front page after they expire](https://wordpress.org/support/topic/remove-not-delete-posting-on-the-front-page-after-they-expire/)
 *  [royaltask](https://wordpress.org/support/users/royaltask/)
 * (@royaltask)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/remove-not-delete-posting-on-the-front-page-after-they-expire/#post-13570708)
 * You need to get this solved in your software.
 * I have added a solution in functions.php that removes events by end-date not 
   expiry date field.
 * **Thomas** let me know if you need help here and get in contact.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Events Manager - Calendar, Bookings, Tickets, and more!] Events List as Table](https://wordpress.org/support/topic/events-list-as-table/)
 *  [royaltask](https://wordpress.org/support/users/royaltask/)
 * (@royaltask)
 * [6 years ago](https://wordpress.org/support/topic/events-list-as-table/#post-13045963)
 * Thank you Angelo! Worked fine!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WP Event Manager – Events Calendar, Registrations, Sell Tickets with WooCommerce] Event expiry date not set on same date as end date automatically](https://wordpress.org/support/topic/event-expiry-date-not-set-on-same-date-as-end-date-automatically/)
 *  Thread Starter [royaltask](https://wordpress.org/support/users/royaltask/)
 * (@royaltask)
 * [6 years ago](https://wordpress.org/support/topic/event-expiry-date-not-set-on-same-date-as-end-date-automatically/#post-13022686)
 * I managed it with a hook:
 *     ```
       $listings = get_posts( $args );
           foreach($listings as $post) : setup_postdata($post);
   
         $today = date( 'Ymd' ); // get date
         $expire = get_field( '_event_end_date' );  // get event_end_date
         $expire = str_replace("-", "", $expire); // same date format
   
               if ( $expire < $today ) :  // compare
                   $status = '_event_end_date';
       	$post->post_status = 'draft'; // change post status
           wp_update_post( $post );
       ```
   
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Events Manager - Calendar, Bookings, Tickets, and more!] Events List as Table](https://wordpress.org/support/topic/events-list-as-table/)
 *  [royaltask](https://wordpress.org/support/users/royaltask/)
 * (@royaltask)
 * [6 years ago](https://wordpress.org/support/topic/events-list-as-table/#post-13022659)
 * Table looks nice, how do you change the date format into German 01.01.2020?
    -  This reply was modified 6 years ago by [royaltask](https://wordpress.org/support/users/royaltask/).
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WP Event Manager – Events Calendar, Registrations, Sell Tickets with WooCommerce] Event expiry date not set on same date as end date automatically](https://wordpress.org/support/topic/event-expiry-date-not-set-on-same-date-as-end-date-automatically/)
 *  Thread Starter [royaltask](https://wordpress.org/support/users/royaltask/)
 * (@royaltask)
 * [6 years ago](https://wordpress.org/support/topic/event-expiry-date-not-set-on-same-date-as-end-date-automatically/#post-13020392)
 * I almost got the automatisation working, _event_expiry_date gets changed automatically–
   event status is still active and shows 01.01.1970..”get_field” is not valid? 
   I want to compare _event_end_date < $today .Let me know how to get this done:
 *     ```
       // Create a cron job in order to check the custom field of '_event_end_date' against today's date. If the date has passed, set the _event_expiry_date status to '_event_end_date' and hide expired events online
   
       function check_event_end_date( ) {
   
         global $post;
   
         $args = array( 
           'post_type'       => 'event_listing',
           'posts_per_page'  => -1,
         );
   
         $listings = get_posts( $args );
           foreach($listings as $post) : setup_postdata($post);
   
         $today = date( 'Ymd' );
         $expire = get_field( '_event_end_date', false, false );
           //$status = get_field( '_event_expiry_date' );
               if ( $expire < $today ) :
                   $status = '_event_end_date';
                   update_field( '_event_expiry_date', '$status' );
               endif;  
           endforeach;
   
       }
   
       // Schedule Cron Job Event
   
       if ( ! wp_next_scheduled( 'event_listing_cron_event' ) ) {
           wp_schedule_event( date( 'Ymd' ), 'daily', 'event_listing_cron_event' );
       }
       add_action( 'event_listing_cron_event', 'check_event_end_date' );
       ```
   
    -  This reply was modified 6 years ago by [royaltask](https://wordpress.org/support/users/royaltask/).
    -  This reply was modified 6 years ago by [royaltask](https://wordpress.org/support/users/royaltask/).
    -  This reply was modified 6 years ago by [royaltask](https://wordpress.org/support/users/royaltask/).
    -  This reply was modified 6 years ago by [royaltask](https://wordpress.org/support/users/royaltask/).
    -  This reply was modified 6 years ago by [royaltask](https://wordpress.org/support/users/royaltask/).
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WP Event Manager – Events Calendar, Registrations, Sell Tickets with WooCommerce] Event expiry date not set on same date as end date automatically](https://wordpress.org/support/topic/event-expiry-date-not-set-on-same-date-as-end-date-automatically/)
 *  Thread Starter [royaltask](https://wordpress.org/support/users/royaltask/)
 * (@royaltask)
 * [6 years ago](https://wordpress.org/support/topic/event-expiry-date-not-set-on-same-date-as-end-date-automatically/#post-13020044)
 * How can I achive this:
    if I have set up an expiry date in admin then it will
   set that date. (works fine!)
 * If I have published the end date without changing the expiry date field then 
   it will create event end date as the event expiry date?!
 * I just want to hide events older that the end date!
    -  This reply was modified 6 years ago by [royaltask](https://wordpress.org/support/users/royaltask/).
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WP Event Manager – Events Calendar, Registrations, Sell Tickets with WooCommerce] Automatically set expiration date](https://wordpress.org/support/topic/automatically-set-expiration-date/)
 *  [royaltask](https://wordpress.org/support/users/royaltask/)
 * (@royaltask)
 * [6 years ago](https://wordpress.org/support/topic/automatically-set-expiration-date/#post-13019994)
 * Can you help us with this? My events never expire, I have to set this manually
   for every event. I want to hide events older than _event_end_date!
    -  This reply was modified 6 years ago by [royaltask](https://wordpress.org/support/users/royaltask/).
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WP Event Manager – Events Calendar, Registrations, Sell Tickets with WooCommerce] Event expiry date not set on same date as end date automatically](https://wordpress.org/support/topic/event-expiry-date-not-set-on-same-date-as-end-date-automatically/)
 *  Thread Starter [royaltask](https://wordpress.org/support/users/royaltask/)
 * (@royaltask)
 * [6 years ago](https://wordpress.org/support/topic/event-expiry-date-not-set-on-same-date-as-end-date-automatically/#post-13019642)
 * I checked “events expire on the event end date”, events in the past are still
   showing in my listing. This is a common feature, how come past events are still
   showing?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WP Event Manager – Events Calendar, Registrations, Sell Tickets with WooCommerce] Event Listing Elementor | List View default](https://wordpress.org/support/topic/event-listing-elementor-list-view-default/)
 *  Thread Starter [royaltask](https://wordpress.org/support/users/royaltask/)
 * (@royaltask)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/event-listing-elementor-list-view-default/#post-12887809)
 * Thank you, this feature would be great to see in an Update. At the moment I cannot
   use the Witget of Elementor because of this missing function.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Polylang] Show same post if translation doesnt exist?](https://wordpress.org/support/topic/show-same-post-if-translation-doesnt-exist/)
 *  [royaltask](https://wordpress.org/support/users/royaltask/)
 * (@royaltask)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/show-same-post-if-translation-doesnt-exist/#post-9583285)
 * Plugin is great, some feature are still missing, though.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Polylang] Home if no translate](https://wordpress.org/support/topic/home-if-no-translate/)
 *  [royaltask](https://wordpress.org/support/users/royaltask/)
 * (@royaltask)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/home-if-no-translate/#post-9583266)
 * Did you find a solution. My only solution is to add a translated page with a 
   redirect to HOME. Not fancy I know, but do you have a solution?

Viewing 15 replies - 1 through 15 (of 42 total)

1 [2](https://wordpress.org/support/users/royaltask/replies/page/2/?output_format=md)
[3](https://wordpress.org/support/users/royaltask/replies/page/3/?output_format=md)
[→](https://wordpress.org/support/users/royaltask/replies/page/2/?output_format=md)