Answer the question
In order to leave comments, you need to log in
Where does WP handle article code before rendering?
Hello. A very specific question on WP... What wordpress noticed. It stores the article code in the prefix_posts table, but there are no specific p tags in the article code , that is, those responsible for forming a paragraph. In the WP editor, I work in the "Text" mode, if anything, that is, not in the visual one.
But at the same time, after loading the page, there are paragraph tags in the source code. The question is - when exactly does he substitute them? When generating the page code, some kind of script responsible for this should work. I want to see a function for this, I want to see an algorithm for this...
Why even ask. I'm making my own simplistic engine based on WP, but in OOP style. I have already done almost all the necessary functionality, except for this damn automatic paragraphing
Answer the question
In order to leave comments, you need to log in
The the_content
filter is applied before the value is output from the database . By default, a number of callbacks hang on it out of the box, one of them is wp_autotop, which forms paragraphs.
All this is in the documentation, all this can be caught and viewed both through the code in any IDE and with the help of Xdebug.
The simplest implementation is 5 vertical divs-columns, in which you already add divs-cells of different heights.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question