Skip to content
This repository was archived by the owner on Sep 15, 2025. It is now read-only.

Commit 5d95cc1

Browse files
committed
Set parent id for self-hosted non jetpack blog
1 parent 81a1f4c commit 5d95cc1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

WordPressKit/PostServiceRemoteXMLRPC.m

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -414,6 +414,7 @@ - (NSDictionary *)parametersWithRemotePost:(RemotePost *)post
414414
}
415415

416416
postParams[@"sticky"] = post.isStickyPost ? @"true" : @"false";
417+
postParams[@"wp_page_parent_id"] = post.parentID ? post.parentID.stringValue : @"0";
417418

418419
// Scheduled posts need to sync with a status of 'publish'.
419420
// Passing a status of 'future' will set the post status to 'draft'

0 commit comments

Comments
 (0)