Title: Change &#8220;null&#8217; to different string
Last modified: July 2, 2020

---

# Change “null’ to different string

 *  Resolved [dewhead](https://wordpress.org/support/users/dewhead/)
 * (@dewhead)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/change-null-to-different-string/)
 * Hi,
 * When setting an event to private it shows up as “null” on the calendar.
    Is it
   possible to change null to a different string for all private events?
 * Thank you,
    -  This topic was modified 5 years, 11 months ago by [dewhead](https://wordpress.org/support/users/dewhead/).
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fchange-null-to-different-string%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 9 replies - 1 through 9 (of 9 total)

 *  Plugin Author [michielve](https://wordpress.org/support/users/michielve/)
 * (@michielve)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/change-null-to-different-string/#post-13061540)
 * I see that if you leave the title of the event empty, I see “null”. So the solution
   is to add a title to the event.
    -  This reply was modified 5 years, 11 months ago by [michielve](https://wordpress.org/support/users/michielve/).
 *  Thread Starter [dewhead](https://wordpress.org/support/users/dewhead/)
 * (@dewhead)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/change-null-to-different-string/#post-13061862)
 * Hi,
 * The calendar configured in the plugin is public.
    The event is shared from another
   calendar that is not public. The event has a title. The event itself is set to“
   Private” and “Busy”. If I configure it as “Free” it doesn’t show on the calendar,
   which is fine. If I set it to “Busy” it shows “null”. If it’s an all day event
   no time is shown (which is fine). If it’s a timed event, only the hour (6 from
   6:00) number is shown next to “null”
 * Now while reproducing I realized that if there are two private events on the 
   same day only one event shows and it shows as null of course.
 * Screenshots:
    [Event settings](https://www.motorcity.co.il/wp-content/uploads/2020/07/michielve3-.jpg)
   [Event on plugin](https://www.motorcity.co.il/wp-content/uploads/2020/07/michielve2-.jpg)
 * Thank you,
    -  This reply was modified 5 years, 11 months ago by [dewhead](https://wordpress.org/support/users/dewhead/).
    -  This reply was modified 5 years, 11 months ago by [dewhead](https://wordpress.org/support/users/dewhead/).
    -  This reply was modified 5 years, 11 months ago by [dewhead](https://wordpress.org/support/users/dewhead/).
    -  This reply was modified 5 years, 11 months ago by [dewhead](https://wordpress.org/support/users/dewhead/).
 *  Plugin Author [michielve](https://wordpress.org/support/users/michielve/)
 * (@michielve)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/change-null-to-different-string/#post-13064579)
 * I think the reason the title isn’t displayed is because of your second sentence“
   The event is shared from another calendar that is not public.”. Because if I 
   create an event and set it to private and busy in my own calendar, I see the 
   title. But when I add your public calendar I also don’t see the title in the 
   Google Calendar interface.
 * When I have time, I will add a new option to set the title in case it is “null”.
 * Your second issue (two private events on the same day and only 1 shows up) I 
   cannot reproduce.
 *  Thread Starter [dewhead](https://wordpress.org/support/users/dewhead/)
 * (@dewhead)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/change-null-to-different-string/#post-13064837)
 * That would be great! Where should I follow to know about any update?
 * Thank you!
 *  Plugin Author [michielve](https://wordpress.org/support/users/michielve/)
 * (@michielve)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/change-null-to-different-string/#post-13135090)
 * Hi,
 * In the new release of this plugin, you can set a default title in case the title
   is missing. Just add the following to your `wp-config.php` file:
 * `define('PGC_EVENTS_DEFAULT_TITLE', 'My default title');`
 * Best wishes,
    Michiel
 *  Thread Starter [dewhead](https://wordpress.org/support/users/dewhead/)
 * (@dewhead)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/change-null-to-different-string/#post-13135922)
 * Hi Michiel,
 * Thank you.
    It’s not working as expected. I might not be doing it correctly. 
   I’d like you to see the following video demonstrating what I see. [video src="
   https://www.motorcity.co.il/wp-content/uploads/2020/07/2020-07-17-15-39-29.mp4"/]
 * Thank you,
 *  Plugin Author [michielve](https://wordpress.org/support/users/michielve/)
 * (@michielve)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/change-null-to-different-string/#post-13138737)
 * Hi,
 * I’ve tested it myself and it’s working as expected. I think it’s not working 
   in your case because in the `wp-config.php` file you have to put the line:
 * `define('PGC_EVENTS_DEFAULT_TITLE', 'My default title');`
 * above the the line that says:
 * `/* That's all, stop editing! Happy blogging. */`
 * After that make sure to clear the cache (in the plugin settings page) as well
   as the cache of the browser, otherwise you will still see the previous output.
 * Best wishes,
    Michiel
 *  Thread Starter [dewhead](https://wordpress.org/support/users/dewhead/)
 * (@dewhead)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/change-null-to-different-string/#post-13138807)
 * Yes! it works!
    Aren’t screen captures just the best? 😛 Works well with RTL 
   language as well. Hebrew in my case.
 * Thank you [@michielve](https://wordpress.org/support/users/michielve/)
    I still
   want to get you that beer. Actually 2 beers now.
 *  Plugin Author [michielve](https://wordpress.org/support/users/michielve/)
 * (@michielve)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/change-null-to-different-string/#post-13143521)
 * [@dewhead](https://wordpress.org/support/users/dewhead/) Good to hear it’s working!
   If I ever go to Israel, I’ll let you know and you can buy me a beer 😉

Viewing 9 replies - 1 through 9 (of 9 total)

The topic ‘Change “null’ to different string’ is closed to new replies.

 * ![](https://ps.w.org/private-google-calendars/assets/icon-256x256.png?rev=2203549)
 * [Private Google Calendars](https://wordpress.org/plugins/private-google-calendars/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/private-google-calendars/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/private-google-calendars/)
 * [Active Topics](https://wordpress.org/support/plugin/private-google-calendars/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/private-google-calendars/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/private-google-calendars/reviews/)

## Tags

 * [event](https://wordpress.org/support/topic-tag/event/)
 * [NULL](https://wordpress.org/support/topic-tag/null/)
 * [private](https://wordpress.org/support/topic-tag/private/)

 * 9 replies
 * 2 participants
 * Last reply from: [michielve](https://wordpress.org/support/users/michielve/)
 * Last activity: [5 years, 10 months ago](https://wordpress.org/support/topic/change-null-to-different-string/#post-13143521)
 * Status: resolved