---
title: "Sync Password-Protected and Sticky Posts Between WordPress Sites"
url: "https://wpimportexport.com/sync-password-protected-sticky-posts-between-sites/"
description: "Push password-protected and sticky posts to another WordPress site: the password and the sticky flag come along, and later pushes update or remove them."
type: post
published: 2026-11-26T05:00:00+00:00
modified: 2026-11-25T19:02:11+00:00
categories: ["Content Sync", "Tutorials"]
tags: ["Content Sync", "sync WordPress sites", "WordPress content sync"]
docs_topics: ["Sync and migration"]
---

# Sync Password-Protected and Sticky Posts Between WordPress Sites

A members-only price list behind a post password, an announcement pinned to the top of the blog: both are settings of the post, not part of its text. When you copy such posts to another WordPress site, the question is whether the password and the sticky flag come along, and what happens when you change them later. With **Import Export by RockStarLab** Content Sync, both travel with the post, on the first push and on every update.

**Free:** Content Sync of posts and pages, including passwords and sticky posts, is in the free plugin. The test below used version 2.2.12 on both sites.

## Short Answer

A password-protected post arrives on the other site with the same password, and a sticky post arrives sticky. When you push the post again, the other site gets the current state: a new password, a removed password, or a post that is no longer sticky. Pages keep their password too; sticky applies only to posts, as in WordPress itself. Pull works the same way in the other direction.

## The two posts we pushed

On the source site we had a coffee roastery’s _Wholesale Price List 2027_, protected with a password for café partners, and _Holiday Opening Hours_, marked “Stick to the top of the blog”. WordPress shows both states next to the title in Posts:

![WordPress Posts list on the source site with Holiday Opening Hours marked Sticky and Wholesale Price List 2027 marked Password protected, both selected](https://wpimportexport.com/wp-content/uploads/2026/11/pw-sticky-source-list-3-1024x238.webp)

_The two posts on the source site, selected for Sync Content._

We ticked both posts, clicked **Sync Content**, chose the second site and clicked **Push to Site**. Neither post existed there yet, so both were set to **Create New Post**; after **Confirm & Sync** they were created. If the two sites aren’t connected yet, start with [how Content Sync works](https://wpimportexport.com/how-content-sync-works-api-keys-push-pull/).

## What the other site got

In Posts on the receiving site, the price list was password protected and the opening hours post was sticky, the same as on the source:

![Posts list on the receiving site showing Holiday Opening Hours as Sticky and Wholesale Price List 2027 as Password protected](https://wpimportexport.com/wp-content/uploads/2026/11/pw-sticky-target-list-1024x238.webp)

_After the push, the receiving site shows the same states._

The password itself was the same, so partners who know it can open the post on both sites. A visitor who entered it on one site has to enter it again on the other one: WordPress remembers an entered password in a cookie for one domain only.

![Front end of the receiving site with Protected: Wholesale Price List 2027 and the WordPress password form](https://wpimportexport.com/wp-content/uploads/2026/11/pw-sticky-target-front-1024x683.webp)

_Visitors on the receiving site get the password form._

On the home page of the receiving site the sticky post was listed first, above newer posts, and the protected post was listed with the “Protected:” prefix, as WordPress does for any password-protected post.

## Change the password or unpin the post, then push again

Next we changed the price list password on the source site and unchecked “Stick to the top of the blog” for the opening hours. We selected both posts and opened Sync Content again. [Auto-match by Title](https://wpimportexport.com/auto-match-by-title-map-posts-between-sites/) found the copies on the other site and set both rows to **Update**:

![Map Posts for Sync dialog with both posts set to Update the existing copies on the remote site](https://wpimportexport.com/wp-content/uploads/2026/11/pw-sticky-map-update.webp)

_The second push updates the copies that already exist._

After the update, the other site had the new password, and the opening hours post was a normal post again. Removing the password works the same way: we cleared the password field on the source, pushed, and the post on the other site was public. Then we set the password back and made the post sticky again, and one more push restored both.

| Change on the source site | Other site after the push |
| --- | --- |
| New post with a password | Created with the same password |
| New sticky post | Created and sticky |
| Password changed | New password |
| Password removed | Post is public |
| Post unpinned | Post is no longer sticky |
| Password-protected page | Page created with the same password |
| Pull of a protected sticky post | Created on this site with the password, sticky |

So the source site decides. If someone unpinned a post or changed a password only on the receiving site, the next push from the source brings back the source’s settings. Make the change on the site you push from.

## Things to know

- WordPress stores post passwords as plain text, and the push sends the password along with the post. Connect your sites over HTTPS.
- A post password is not a login. Anyone with the password can read the post on either site. For content only logged-in users should see, use private posts; see [what happens to draft, scheduled and private posts when you push](https://wpimportexport.com/push-draft-scheduled-private-posts-content-sync/).

As before any push, [back up the site you push to](https://wpimportexport.com/how-to-create-a-wordpress-website-backup-and-restore-it/), or ask your AI agent to start the backup.

## With an AI Agent or WP-CLI

Content Sync is open to AI agents too. Through the WordPress MCP Adapter, WordPress itself gives an agent only read-only abilities for site, user and environment information, so on its own it cannot push a post to another site. Import Export by RockStarLab adds the Content Sync abilities, and one request is enough:

```
With Import Export by RockStarLab, push the posts "Wholesale Price List 2027" and "Holiday Opening Hours" to the staging site and update the copies that are already there.
```

In our run the agent called `rsl-ie/sync-auto-map`, which matched both posts to the existing copies by title, and then `rsl-ie/sync-push` with that mapping. The result was 2 posts updated, 0 created, 0 failed, and the password and sticky state on the other site matched the source.

The same push runs from WP-CLI on the source site, for example in a deploy script; put the IDs of your posts in `post_ids`:

```
wp rsl-ie ability rsl-ie/sync-push '{"site_id":1,"post_type":"post","post_ids":[123,124]}' --user=admin
```

## FAQ

### Does Content Sync copy the post password?

Yes. The post arrives on the other site with the same password, and later pushes update or remove it.

### Does a sticky post stay sticky on the other site?

Yes. A sticky post is created as sticky, and when you unpin it on the source and push again, it is unpinned on the other site too.

### Do visitors have to enter the password again on the other site?

Yes. WordPress keeps the entered password in a cookie for one domain, so each site asks for it once.

### Which site decides the password?

The site you push from. Every push sets the password and the sticky state from the source site, so change them there and push.

## Related Guides

- [How Content Sync Works: API Keys, Push, Pull and What Gets Copied](https://wpimportexport.com/how-content-sync-works-api-keys-push-pull/)
- [Drafts, Scheduled and Private Posts: What Happens to Post Status When You Push](https://wpimportexport.com/push-draft-scheduled-private-posts-content-sync/)
- [How Auto-Match by Title Works and When to Map Posts Manually](https://wpimportexport.com/auto-match-by-title-map-posts-between-sites/)
- [Reading the Jobs Log After a Sync: Created, Updated and Failed Posts](https://wpimportexport.com/read-jobs-log-after-content-sync/)

Get the free plugin on [WordPress.org](https://wordpress.org/plugins/import-export-by-rockstarlab/).
