M
M
Mikhail Vasiltsev2018-08-04 10:42:47
WordPress
Mikhail Vasiltsev, 2018-08-04 10:42:47

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

5 answer(s)
I
Igor Vorotnev, 2018-08-04
@mihail430899

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.

A
Alexander Taratin, 2015-01-11
@Taraflex

Everything is simple
w3bits.com/css-masonry

S
Sergey Nalomenko, 2015-01-11
@nalomenko

The simplest implementation is 5 vertical divs-columns, in which you already add divs-cells of different heights.

A
aen, 2015-01-11
@aen

Google the phrase masonry layout. For example masonry.desandro.com

R
Roger, 2015-01-11
@mrquake

Advertisement for porn site detected

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question