Tag Info

New answers tagged


The only answer is "because". Not every software design decision is a result of 10 years of research and some time you just go with what you know better or what you think will be easier to work with. In the end DB is files so the whole discussion here is mainly about semantics.


WordPress was forked (2003) from b2 that used PHP/MySQL, to generate pages dynamically - So I think that's the why part. https://codex.wordpress.org/History


Maybe you could simply use do_shortcode() if all you have in your content is shortcodes, as long as you don't have any other content that need the filters. I don't know the context, but if you're in the loop : echo do_shortcode($post->post_content);


Here you go ! <?php $my_id = 5369; $post_id_5369 = get_post($my_id); $content = $post_id_5369->post_content; $content = apply_filters('the_content', $content); $content = str_replace(']]>', ']]>', $content); echo $content; ?>

Top 50 recent answers are included