Skip to content

Saving metadata to posts #6

@scripting

Description

@scripting

This came up when we wanted to do linkblogs on WordPress sites, Scott Hanson suggested we could use WordPress's metadata feature, which allows apps to attach data to the post invisibly, and then use that to make the link accessible from the user interface.

That feature is now in the wpIdentity server as of version 0.5.24.

Docs

The feature is written up in the worknotes.

Example

    "metadata": {
        "activitypub_status": "federated",
        "wordland_apiVersion": "0.4.0",
        "wordland_idDraft": "3931",
        "wordland_linksTo": "https://github.com/scripting/wpIdentity/issues/6",
        "wordland_markdowntext": "I enjoy working on the [wpIdentity](https://github.com/scripting/wpIdentity) package, esp a design-heavy, code-lite feature like the metadata. \n\nThis is an example post for the docs on the metadata feature that has been added today. \n\nHere's a list of seven things whose names begin with O.\n\n1.  [Oreo cookies](https://en.wikipedia.org/wiki/Oreo)\n2.  Optimism\n3.  [Organic food](https://en.wikipedia.org/wiki/Organic_food)\n4.  Opportunity knocks\n5.  Oregon\n6.  Ooops!\n7.  Offred",
        "wordland_title": "An example for the docs",
        "_wpas_done_all": "1"
    },

That data is attached to this post.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions