N
N
netdoer2014-12-24 10:48:21
CMS
netdoer, 2014-12-24 10:48:21

Which function in Wordpress is responsible for outputting html?

What function and in what file does the template output? Interested where exactly it is initiated.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Sergey Biryukov, 2015-01-05
@netdoer

The template is selected in the template-loader.php file , it is connected directly from wp-blog-header.php (which in turn is connected from index.php ) after parsing the main request.
Here you can see a simplified diagram of the entire loading process: “Make sense of WordPress core load” .

M
Mr Crabbz, 2014-12-24
@Punkie

Well, as an example, the the_content and get_content functions. They are used both in individual post type templates (page.php, post.php, etc.) and in archive templates (archive.php, etc.), depending on the templates.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question