I’ve searched the net with no answer.

Let’s say I create a Template for a page called (test), and I want this page to show anything I write in the page area in the content (like it actually works) but after that I would like it to show the post from a category also called (test) or anything Any ideas?

A appreciate it if you can help me out.

Thanks.

Dani AI

Generated

asked for a way to have a post made on one site appear on another. The correct solution depends on the stack (CMS vs custom app vs static files), how immediate the mirror must be, and how media and categories should be handled. Important factors: platform access, whether sites share hosting, and whether slugs/categories must stay identical.

Three common, reliable patterns:

  • Push (webhook / API): Site A sends the new post as JSON to Site B immediately. Good for real‑time updates and precise field mapping. For WordPress sites the REST API is the standard approach (WordPress REST API).
  • Pull (feed aggregation): Site B periodically reads Site A’s RSS/Atom feed and imports new items. Simple and low-friction; works without changing the publisher site much (RSS 2.0 specification).
  • Central source (headless CMS or single backend): Both front ends render from the same content store. Best for consistent slugs, centralized media, and straightforward category mapping.

Practical checklist before building: decide push vs pull; map category names and slugs; choose whether images are hotlinked or copied; prevent duplicates by storing a remote post ID or checking slugs; secure endpoints with HTTPS and API tokens/OAuth; implement logging, retries and rate limiting; and test on staging. A simple push looks like an authenticated POST of JSON from Site A to an endpoint on Site B:

curl -X POST https://site-b.example.com/api/posts \
  -H "Authorization: Bearer <TOKEN>" \
  -H "Content-Type: application/json" \
  -d '{"title":"Test","content":"Body","categories":["test"]}'

pointed out the need for dynamic access; ’s question about a database is relevant because APIs typically require a dynamic backend while feed-based approaches do not. For minimal change start with feeds; move to API/webhooks when tighter control, media copying, or immediate sync is needed.

Recommended Answers

All 3 Replies

i don't get what do you mean ?
you are using sql , or some sorta of database or what ?? what is ( category also called (test) ) ?

I think I explained it a bit too complex, but here it goes in a more simple way. I have 2 sites and I want to be able to post in 1 and that the post appears in the other one as well so what should i do?

I’ve searched the net with no answer.

Let’s say I create a Template for a page called (test), and I want this page to show anything I write in the page area in the content (like it actually works) but after that I would like it to show the post from a category also called (test) or anything Any ideas?

A appreciate it if you can help me out.

Thanks.

If you want the same content to appear on two different sites I would use a mysql db and php to pull the content from the db to the webpage(s). There is no way you could do it with a static site. get your sites layed out except the content then check out the PHP section for answers on creating a DB and using PHP if you dont already know how to do so.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.