• Resolved Ambyomoron

    (@josiah-s-carberry)


    I note the new feature of being able to flag a location’s external URL as “only online location”. From a visitor’s perspective, this field and flag would be most useful if it were automatically displayed as a hyperlink. This does not happen currently, although I recognize that one can create a template to do so.

    This feature might also be useful to take advantage of Google’s new feature of flagging events as online. But, AFAICS, no such meta data are added to the page of the event when the location is flagged as “only online”.

    So, it would be helpful to explain what use cases were imagined in implementing this new flag.

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Franky

    (@liedekef)

    It is being used to add metadata when “online only”.
    Also, if online only, the link of the location will use this link directly.

    Thread Starter Ambyomoron

    (@josiah-s-carberry)

    I don’t see anywhere on the page where the location is used as a source of metadata. Could you please say which metadata tag should be on the page?

    Plugin Author Franky

    (@liedekef)

    Did you check the page source? Because only there the html metatags are visible, and for the location it is in the json+ld part that is automatically added for google.

    Thread Starter Ambyomoron

    (@josiah-s-carberry)

    OK, I was looking for the wrong strings. What I found is the following:

    <script type="application/ld+json">{"@context":"http://www.schema.org","@type":"Event","name":"Event title","url":"https://mysite.com/events/event-title/","description":"Something about the event","startDate":"2020-04-15T10:00","endDate":"2020-04-15T10:45","image":"https://mysite.com/wp-content/my-pictures/some-picture.png","eventAttendanceMode":"https://schema.org/OnlineEventAttendanceMode","location":{"@type":"VirtualLocation","url":""}}</script>

    But the last part, where type is set to VirtualLocation, is exactly the same, whether I check “online only” or not. I would image that the value of type should be different if it “online only” is not checked.

    Also, shouldn’t one expect to see the URL in the location field “External URL” appear in the metadata (as you see about, the value of “url” is null).

    Plugin Author Franky

    (@liedekef)

    It is a combination of eventAttendanceMode and the location(s), like google is asking.
    The url in the virtuallocation shouldn’t be empty though, that I need to check. Did you enter a url there?

    Plugin Author Franky

    (@liedekef)

    The empty url is indeed a bug. This fixes it: https://plugins.trac.wordpress.org/changeset/2275494/

    Thread Starter Ambyomoron

    (@josiah-s-carberry)

    The update fixes the blank URL in the ld+json metadate. Thank you.

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

The topic ‘Using the “only online location” flag’ is closed to new replies.