Skip to content

README could be outdated #25

@sudoaza

Description

@sudoaza

I couldn't get the example running, after reading the code and debuging i found that this example

term = WPDB::Term.create(:name => 'Fred Stuff')

post = WPDB::Post.create(
    :post_title => 'Hello from Fred',
    :post_content => 'Hello, world',
    :author => author
).add_term(term, 'tag')
  • Instead of 'tag' should be 'post-tag'
  • add_term complains about 2 more parameters, description and count, i gave it '' and 1 and seems to work.

Nice tool :)

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