Commit graph

6 commits

Author SHA1 Message Date
a70015e314 feat: improved creation and assignment of post taxonomies and terms (#6)
With this PR we can (among actually creating taxonomies and terms) assign and remove terms from a post with the following
```php
$post = new Post(123);
$term = new Term(321);
```
Add a term to a post:
```php
$post->add_term($term);
```
Remove a term from a post:
```php
$post->remove_term($term);
```

Reviewed-on: https://codeberg.org/vlw/wp/pulls/6
2026-02-16 11:26:58 +01:00
b14c14d9b3 feat: add methods for Post featured media Attachments (#4)
In this PR we add methods for setting and getting featured media attachments for posts.

Reviewed-on: https://codeberg.org/vlw/wp/pulls/4
2026-02-15 11:52:29 +01:00
ff9b5ca42c
fix: pass static database credentials for Database::current() (#3) 2026-02-15 10:10:26 +01:00
eebe93fc53 feat: add parsing of WordPress taxonomies and terms (#2)
Reviewed-on: https://codeberg.org/vlw/wp/pulls/2
2026-02-15 09:51:02 +01:00
6d1fa852b5 fix: import Database from scaffolding lib and remove instances from .env.ini (#1)
This PR fixes instancing issues with `Database` due to not being able to locate its parent class from the scaffolding library. This is definitely kind of strange and should probably be investigated further. It might be because we're not autoloading these files from the library itself.

We also remove loading of Database credentials from `.env.ini` as that does not make any sense for a bundled library. Database credentials are now provided to the constructor of the `Database` class.

Reviewed-on: https://codeberg.org/vlw/wp/pulls/1
2026-02-12 15:27:00 +01:00
cfe10401a3
initial commit 2026-02-12 13:19:50 +01:00