Back to blog
5 min read Content Sync

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
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.

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
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
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 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
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.

As before any push, back up the site you push to, 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.

Get the free plugin on WordPress.org.

Dmitriy
About author

Dmitriy

WordPress Developer with 15+ years of commercial experience. Elite Author on ThemeForest and creator of custom WordPress plugins. Passionate about clean code, performance optimization, and building useful tools for the WordPress community.

JOIN THE CONVERSATION

Comments 0

Have a question or a tip to share? Leave it below.

Leave a comment

Your email address will not be published. Required fields are marked *

We store your name, email and comment to show and moderate it; your email is never published. Spam protection is provided by Cloudflare Turnstile and profile pictures by Gravatar. See our Privacy Policy.


Try the plugin with no risks!

New users get 1 month with access to all premium features. Experience the most powerful WordPress data engine today.

Download Now
Get PRO for FREE