Skip to content
This repository has been archived by the owner on May 6, 2019. It is now read-only.

Releases: socheatsok78/corcel-wpml

Fix for @corcel/corcel v2.5.x

30 Oct 02:38
89a9ede
Compare
Choose a tag to compare
  • Merge pull request made by @jphms - GH-2

v1.0.7

30 Jan 03:42
Compare
Choose a tag to compare

Fix issue #1

v1.0.6

04 Jul 10:36
Compare
Choose a tag to compare

Fixes

  • Relationship Post::class with Translation::class

v1.0.5

04 Jul 03:03
Compare
Choose a tag to compare

Update

  • Fixes and improvements

v1.0.4

03 Jul 10:24
Compare
Choose a tag to compare

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

01 Jul 18:21
Compare
Choose a tag to compare

Fix

  • Remove models folder to avoid conflict with Corcel models folder

v1.0.2

01 Jul 17:19
Compare
Choose a tag to compare

Fixes

  • Add models\Post.php and models\Page.php
  • Fix composer installer fail on missing those two classes

v1.0.1

01 Jul 16:45
Compare
Choose a tag to compare

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

01 Jul 10:05
Compare
Choose a tag to compare

First Release

  • Extending Support from Corcel/Post and Corcel/Page Model
  • There are a lot to do after this.