Answer the question
In order to leave comments, you need to log in
When activating a new theme in wordpress, how not to drag your posts into it?
Good afternoon! I'm a little confused. I installed wordpress and began to pull the layout. And when I open other topics, the posts and pages that I made are transferred to these new topics. Please tell me how to make it so that this does not happen when activating themes?
Answer the question
In order to leave comments, you need to log in
Topic ≠ single site/subsite. A theme is basically a design/layout that you apply to existing posts or pages.
Hello!
After reading the previous answer and the comments to it, I realized that it would be difficult to explain ...
Activating a new topic at the code level looks like adding the name of this topic to the database and, accordingly, when you activate a new topic, this post and page will not be deleted, because they are not connected in any way.
Here, imagine that you bought new clothes and put them on yourself. That won't make you lose your memory, will it? You will not forget your name, your life, etc. You will remain who you are. The same is true for the website. A theme is just a design and you won't lose anything by changing it.
If you really want to do something similar, then you can, for example, write a functional that, by pressing the "Activate" button on the topic, will also start the process of deleting posts and pages. However, the process will be irreversible, i.e. if you return to the old topic, then there will be no entries either.
It's not normal when I want to open a completely new theme and I have everything old but in a new style.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question