This repository was archived by the owner on May 6, 2019. It is now read-only.
Releases: socheatsok78/corcel-wpml
Releases · socheatsok78/corcel-wpml
Fix for @corcel/corcel v2.5.x
v1.0.7
v1.0.6
Fixes
- Relationship Post::class with Translation::class
v1.0.5
Update
- Fixes and improvements
v1.0.4
Fixes
- Using Query Builder instead of Local Scope to get translate post object.
// Find a translation collection by post id or slug
$lang = 'en'; \\ OR
$lang = config('app.locale');
$post = Post::slug('about')->translate($lang);
\\ Result
Page {#1847 ▼
#postType: "page"
#original: array:23 [▼
"ID" => 6
"post_author" => 1
"post_date" => "2017-06-12 04:49:06"
"post_date_gmt" => "2017-06-12 04:49:06"
"post_content" => "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua."
"post_title" => "Lorem ipsum dolor sit amet"
...
]
}
v1.0.3
Fix
- Remove models folder to avoid conflict with Corcel models folder
v1.0.2
Fixes
- Add models\Post.php and models\Page.php
- Fix composer installer fail on missing those two classes
v1.0.1
Post and Page Translation
- The plugin now capable go getting page translations.
Note
- There are still a lot we need to cover such as ACF and Check to see if everything works as expected.
Not working
This is what we know so far
- ACF
v1.0.0
First Release
- Extending Support from Corcel/Post and Corcel/Page Model
- There are a lot to do after this.