selftaught91
selftaught91

Reputation: 7461

How to know that the wordpress post type is visual or text?

Wordpress gives two options while creating a post.

enter image description here

How to know in php code that the post is of visual or text type.

Upvotes: 0

Views: 24

Answers (1)

mayersdesign
mayersdesign

Reputation: 5310

I think you might be confused about what those tabs do. They simply toggle between the exact same data. One tab rendered the exact markup you have created, and the other one renders that (same!) markup PLUS the CSS file that is associated with the editor.

There is no way to tell them apart, since they are (literally) the same thing.

Upvotes: 1

Related Questions