Skip to content

Lead/hero text missing on single event pages: Eventyay API does not expose a tagline field #141

Description

@Nimeshan

Problem

The single-event hero section displays a lead/tagline paragraph below the event title. This is stored in wpfa_event_lead_text post meta and displayed by single-wpfa-event.php (line 108).

During Eventyay import the repository already tries the following candidate field names from both the event resource and the settings endpoint:

headline, lead_text, lead-text, subtitle, frontpage_text,
frontpage-text, short_description, short-description, summary

None of these are returned by the Eventyay API for the events tested, so wpfa_event_lead_text is always empty after import and users must enter the text manually via the WP admin meta box.

Expected behaviour

The importer should populate wpfa_event_lead_text automatically from the Eventyay event data so that the hero tagline appears without manual entry.

Steps to investigate / potential solutions

  1. Check Eventyay API response – Review the raw JSON returned by GET /api/v1/organizers/{slug}/events/ and GET /api/v1/organizers/{slug}/events/{slug}/ for any short-description or tagline field we have not yet mapped.
  2. Ask Eventyay dev team – If no suitable field exists, open a feature request with the Eventyay team to expose a short_description or headline field via their API.
  3. Fallback: first sentence of description – As a last resort, derive lead text by extracting the first sentence of the event description field.

Related

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions