Documentation
¶
Overview ¶
Package wxr parses WordPress eXtended RSS exports (Tools → Export), the fallback source when the REST API hides data (postmeta such as the MCBB product mapping, drafts, menus).
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type File ¶
type File struct {
Title string
Link string
Language string
BaseSiteURL string
BaseBlogURL string
Generator string
Version string
Authors []Author
Terms []Term // categories, tags and wp:term entries, normalized
Items []Item
}
File is a parsed export.
func (*File) ItemsOfType ¶
ItemsOfType returns the items with post_type typ.
type Item ¶
type Item struct {
ID int
Title string
Link string
Creator string
Content string
Excerpt string
PostDate string
PostDateGMT string
ModifiedGMT string
Name string // post_name (slug, possibly percent-encoded)
Status string
Parent int
MenuOrder int
Type string
AttachmentURL string
Terms []ItemTerm
Meta map[string]string
}
Item is an <item>: a post of any type (post, page, attachment, product, nav_menu_item, …).
Click to show internal directories.
Click to hide internal directories.