Skip to content

Additional front matter from WP #14

@alansuspect

Description

@alansuspect

I've added the following lines to WordPressApi.js to grab additional info, this helps with permalink construction, etc. Could these be included to the code?

Added 'slug' to author (ln 115)

name: authorData.name,
slug: authorData.slug,
url: authorData.url || authorData.link,
avatarUrl: authorData.avatar_urls[Object.keys(authorData.avatar_urls).pop()],

Added 'id' and 'slug' to metadata (~ln 160)

let metadata = {
	id: rawEntry.id,
	slug: rawEntry.slug,
};

I don't us wordpress.com so not sure if these would also work on HostedWordPressApi.js but they might.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions